Safe Haskell | None |
---|---|
Language | Haskell2010 |
- typeSize :: Type -> Int
- newtype Dict = Dict {}
- keys :: Dict -> Set Text
- get :: Text -> Dict -> Type
- withDict :: (Map Text Type -> Map Text Type) -> Dict -> Dict
- data Type
- emptyType :: Type
- isSimple :: Type -> Bool
- isArray :: Type -> Bool
- isObject :: Type -> Bool
- typeAsSet :: Type -> Set Type
- hasNonTopTObj :: Type -> Bool
- hasTObj :: Type -> Bool
- isNullable :: Type -> Bool
- emptySetLikes :: Set Type
Documentation
withDict :: (Map Text Type -> Map Text Type) -> Dict -> Dict Source
Make operation on a map to an operation on a Dict.
isArray :: Type -> Bool Source
Is the top-level constructor a TArray? | Check if the given type has non-top TObj.
hasNonTopTObj :: Type -> Bool Source
Check if the given type has non-top TObj.
isNullable :: Type -> Bool Source
Check if this is nullable (Maybe) type, or not. Nullable type will always accept TNull or missing key that contains it.
emptySetLikes :: Set Type Source
Null-ish types