Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
debugTrace :: String -> a -> a Source #
newtype DebugTypeMap Source #
Instances
Show DebugTypeMap Source # | |
Defined in Telomare.TypeChecker |
data TypeCheckError Source #
Instances
Show TypeCheckError Source # | |
Defined in Telomare.TypeChecker | |
Eq TypeCheckError Source # | |
Defined in Telomare.TypeChecker (==) :: TypeCheckError -> TypeCheckError -> Bool Source # (/=) :: TypeCheckError -> TypeCheckError -> Bool Source # | |
Ord TypeCheckError Source # | |
Defined in Telomare.TypeChecker compare :: TypeCheckError -> TypeCheckError -> Ordering Source # (<) :: TypeCheckError -> TypeCheckError -> Bool Source # (<=) :: TypeCheckError -> TypeCheckError -> Bool Source # (>) :: TypeCheckError -> TypeCheckError -> Bool Source # (>=) :: TypeCheckError -> TypeCheckError -> Bool Source # max :: TypeCheckError -> TypeCheckError -> TypeCheckError Source # min :: TypeCheckError -> TypeCheckError -> TypeCheckError Source # |
type AnnotateState = ExceptT TypeCheckError (State (PartialType, Set TypeAssociation, Int)) Source #
withNewEnv :: LocTag -> AnnotateState a -> AnnotateState (PartialType, a) Source #
setEnv :: PartialType -> AnnotateState () Source #
data TypeAssociation Source #
Instances
Show TypeAssociation Source # | |
Defined in Telomare.TypeChecker | |
Eq TypeAssociation Source # | |
Defined in Telomare.TypeChecker (==) :: TypeAssociation -> TypeAssociation -> Bool Source # (/=) :: TypeAssociation -> TypeAssociation -> Bool Source # | |
Ord TypeAssociation Source # | |
Defined in Telomare.TypeChecker compare :: TypeAssociation -> TypeAssociation -> Ordering Source # (<) :: TypeAssociation -> TypeAssociation -> Bool Source # (<=) :: TypeAssociation -> TypeAssociation -> Bool Source # (>) :: TypeAssociation -> TypeAssociation -> Bool Source # (>=) :: TypeAssociation -> TypeAssociation -> Bool Source # max :: TypeAssociation -> TypeAssociation -> TypeAssociation Source # min :: TypeAssociation -> TypeAssociation -> TypeAssociation Source # |
makeAssociations :: PartialType -> PartialType -> Either TypeCheckError (Set TypeAssociation) Source #
fullyResolve :: (Int -> Maybe PartialType) -> PartialType -> PartialType Source #
traceAssociate :: PartialType -> PartialType -> a -> a Source #
associateVar :: PartialType -> PartialType -> AnnotateState () Source #
initState :: Term3 -> (PartialType, Set TypeAssociation, Int) Source #
getFragType :: LocTag -> FragIndex -> PartialType Source #
annotate :: Term3 -> AnnotateState PartialType Source #
partiallyAnnotate :: Term3 -> Either TypeCheckError (PartialType, Int -> Maybe PartialType) Source #
typeCheck :: PartialType -> Term3 -> Maybe TypeCheckError Source #