Safe Haskell | None |
---|---|
Language | Haskell2010 |
- readType :: Inj_Source (KindK src) src => Inj_Source (TypeVT src) src => Inj_Source (AST_Type src) src => Name2Type src -> AST_Type src -> Either (Error_Type src) (TypeVT src)
- readTyVars :: forall vs src. Inj_Source (KindK src) src => Inj_Source (TypeVT src) src => Inj_Source (AST_Type src) src => Name2Type src -> Vars src vs -> AST_Type src -> Either (Error_Type src) (TypeT src vs)
- readTyName :: Source src => Name2Type src -> src -> Len vs -> NameTy -> Either (Error_Type src) (TypeT src vs)
- readVars :: Source src => EVars src -> AST_Type src -> EVars src
- type Name2Type src = Map NameTy (TypeTLen src)
- newtype TypeTLen src = TypeTLen (forall vs. Len vs -> TypeT src vs)
- class Inj_Name2Type cs where
- data Error_Type src
- = Error_Type_Constant_unknown (At src NameTy)
- | Error_Type_Con_Kind (Con_Kind src)
Documentation
readType :: Inj_Source (KindK src) src => Inj_Source (TypeVT src) src => Inj_Source (AST_Type src) src => Name2Type src -> AST_Type src -> Either (Error_Type src) (TypeVT src) Source #
readTyVars :: forall vs src. Inj_Source (KindK src) src => Inj_Source (TypeVT src) src => Inj_Source (AST_Type src) src => Name2Type src -> Vars src vs -> AST_Type src -> Either (Error_Type src) (TypeT src vs) Source #
readTyName :: Source src => Name2Type src -> src -> Len vs -> NameTy -> Either (Error_Type src) (TypeT src vs) Source #
Type Name2Type
Type TypeTLen
Like TypeT
, but needing a (
Len
vs)
to be built.
Useful to build a Name2Type
which can be used
whatever will be the (
Len
vs)
given to readTyVars
.
Class Inj_Name2Type
class Inj_Name2Type cs where Source #
inj_Name2Type :: Source src => Name2Type src Source #
Inj_Name2Type [k] ([] k) Source # | |
(Inj_KindP (Ty_of_Type (K k c)), (~) * (K k c) (Type_of_Ty (Ty_of_Type (K k c))), Constable k c, Inj_Name2Type [*] cs) => Inj_Name2Type [*] ((:) * (Proxy k c) cs) Source # | |
Type Error_Type
data Error_Type src Source #
Error_Type_Constant_unknown (At src NameTy) | |
Error_Type_Con_Kind (Con_Kind src) |
Eq src => Eq (Error_Type src) Source # | |
Show src => Show (Error_Type src) Source # | |
Inj_Error (Con_Kind src) (Error_Type src) Source # | |
Inj_Error (Error_Type src) (Error_Type src) Source # | |
Inj_Error (Error_Type src) (Error_Term src) # | |