Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A tier-2 module of basic functions for working with types and terms.
Synopsis
- eliminationVariant :: Elimination -> EliminationVariant
- eliminationVariants :: [EliminationVariant]
- floatTypePrecision :: FloatType -> Precision
- floatTypes :: [FloatType]
- floatValueType :: FloatValue -> FloatType
- functionVariant :: Function -> FunctionVariant
- functionVariants :: [FunctionVariant]
- id_ :: a -> a
- integerTypeIsSigned :: IntegerType -> Bool
- integerTypePrecision :: IntegerType -> Precision
- integerTypes :: [IntegerType]
- integerValueType :: IntegerValue -> IntegerType
- literalType :: Literal -> LiteralType
- literalTypeVariant :: LiteralType -> LiteralVariant
- literalVariant :: Literal -> LiteralVariant
- literalVariants :: [LiteralVariant]
- termVariant :: Term -> TermVariant
- termVariants :: [TermVariant]
- typeVariant :: Type -> TypeVariant
- typeVariants :: [TypeVariant]
- capitalize :: String -> String
- decapitalize :: String -> String
- mapFirstLetter :: (String -> String) -> String -> String
- fieldMap :: [Field] -> Map Name Term
- fieldTypeMap :: [FieldType] -> Map Name Type
- isEncodedType :: Term -> Bool
- isType :: Type -> Bool
- isUnitTerm :: Term -> Bool
- isUnitType :: Type -> Bool
- elementsToGraph :: Graph -> Maybe Graph -> [Element] -> Graph
- localNameOfEager :: Name -> String
- localNameOfLazy :: Name -> String
- namespaceOfEager :: Name -> Maybe Namespace
- namespaceOfLazy :: Name -> Maybe Namespace
- namespaceToFilePath :: Bool -> FileExtension -> Namespace -> String
- qualifyNameEager :: Name -> QualifiedName
- qualifyNameLazy :: Name -> QualifiedName
Documentation
eliminationVariant :: Elimination -> EliminationVariant Source #
Find the elimination variant (constructor) for a given elimination term
eliminationVariants :: [EliminationVariant] Source #
All elimination variants (constructors), in a canonical order
floatTypePrecision :: FloatType -> Precision Source #
Find the precision of a given floating-point type
floatTypes :: [FloatType] Source #
All floating-point types in a canonical order
floatValueType :: FloatValue -> FloatType Source #
Find the float type for a given floating-point value
functionVariant :: Function -> FunctionVariant Source #
Find the function variant (constructor) for a given function
functionVariants :: [FunctionVariant] Source #
All function variants (constructors), in a canonical order
integerTypeIsSigned :: IntegerType -> Bool Source #
Find whether a given integer type is signed (true) or unsigned (false)
integerTypePrecision :: IntegerType -> Precision Source #
Find the precision of a given integer type
integerTypes :: [IntegerType] Source #
All integer types, in a canonical order
integerValueType :: IntegerValue -> IntegerType Source #
Find the integer type for a given integer value
literalType :: Literal -> LiteralType Source #
Find the literal type for a given literal value
literalTypeVariant :: LiteralType -> LiteralVariant Source #
Find the literal type variant (constructor) for a given literal value
literalVariant :: Literal -> LiteralVariant Source #
Find the literal variant (constructor) for a given literal value
literalVariants :: [LiteralVariant] Source #
All literal variants, in a canonical order
termVariant :: Term -> TermVariant Source #
Find the term variant (constructor) for a given term
termVariants :: [TermVariant] Source #
All term (expression) variants, in a canonical order
typeVariant :: Type -> TypeVariant Source #
Find the type variant (constructor) for a given type
typeVariants :: [TypeVariant] Source #
All type variants, in a canonical order
capitalize :: String -> String Source #
Capitalize the first letter of a string
decapitalize :: String -> String Source #
Decapitalize the first letter of a string
mapFirstLetter :: (String -> String) -> String -> String Source #
A helper which maps the first letter of a string to another string
isEncodedType :: Term -> Bool Source #
isUnitTerm :: Term -> Bool Source #
isUnitType :: Type -> Bool Source #
localNameOfEager :: Name -> String Source #
localNameOfLazy :: Name -> String Source #
namespaceToFilePath :: Bool -> FileExtension -> Namespace -> String Source #
qualifyNameEager :: Name -> QualifiedName Source #
qualifyNameLazy :: Name -> QualifiedName Source #