Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
infixPrimTy :: TCon -> Maybe (Ident, Fixity) Source #
This is used for pretty prinitng. XXX: it would be nice to just rely in the info from the Prelude.
Kinds, classify types.
Instances
Eq Kind Source # | |
Ord Kind Source # | |
Show Kind Source # | |
Generic Kind Source # | |
NFData Kind Source # | |
Defined in Cryptol.TypeCheck.TCon | |
PP Kind Source # | |
type Rep Kind Source # | |
Defined in Cryptol.TypeCheck.TCon type Rep Kind = D1 ('MetaData "Kind" "Cryptol.TypeCheck.TCon" "cryptol-2.11.0-KBQWpCBm4GD4lGHyVVV39L" 'False) ((C1 ('MetaCons "KType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KNum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "KProp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons ":->" ('InfixI 'RightAssociative 5) 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Kind) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Kind)))) |
Type constants.
Instances
Eq TCon Source # | |
Ord TCon Source # | |
Show TCon Source # | |
Generic TCon Source # | |
NFData TCon Source # | |
Defined in Cryptol.TypeCheck.TCon | |
PP TCon Source # | |
HasKind TCon Source # | |
FreeVars TCon Source # | |
type Rep TCon Source # | |
Defined in Cryptol.TypeCheck.TCon type Rep TCon = D1 ('MetaData "TCon" "Cryptol.TypeCheck.TCon" "cryptol-2.11.0-KBQWpCBm4GD4lGHyVVV39L" 'False) ((C1 ('MetaCons "TC" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TC)) :+: C1 ('MetaCons "PC" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PC))) :+: (C1 ('MetaCons "TF" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TFun)) :+: C1 ('MetaCons "TError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Kind)))) |
Predicate symbols.
If you add additional user-visible constructors, please update primTys
.
PEqual | _ == _ |
PNeq | _ /= _ |
PGeq | _ >= _ |
PFin | fin _ |
PPrime | prime _ |
PHas Selector |
|
PZero | Zero _ |
PLogic | Logic _ |
PRing | Ring _ |
PIntegral | Integral _ |
PField | Field _ |
PRound | Round _ |
PEq | Eq _ |
PCmp | Cmp _ |
PSignedCmp | SignedCmp _ |
PLiteral | Literal _ _ |
PLiteralLessThan | LiteralLessThan _ _ |
PFLiteral | FLiteral _ _ _ |
PValidFloat |
|
PAnd | This is useful when simplifying things in place |
PTrue | Ditto |
Instances
1-1 constants.
If you add additional user-visible constructors, please update primTys
.
TCNum Integer | Numbers |
TCInf | Inf |
TCBit | Bit |
TCInteger | Integer |
TCFloat | Float |
TCIntMod | Z _ |
TCRational | Rational |
TCArray | Array _ _ |
TCSeq | [_] _ |
TCFun | _ -> _ |
TCTuple Int | (_, _, _) |
TCAbstract UserTC | An abstract type |
Instances
Instances
Eq UserTC Source # | |
Ord UserTC Source # | |
Show UserTC Source # | |
Generic UserTC Source # | |
NFData UserTC Source # | |
Defined in Cryptol.TypeCheck.TCon | |
PP UserTC Source # | |
HasKind UserTC Source # | |
type Rep UserTC Source # | |
Defined in Cryptol.TypeCheck.TCon type Rep UserTC = D1 ('MetaData "UserTC" "Cryptol.TypeCheck.TCon" "cryptol-2.11.0-KBQWpCBm4GD4lGHyVVV39L" 'False) (C1 ('MetaCons "UserTC" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Kind))) |
Built-in type functions.
If you add additional user-visible constructors,
please update primTys
in Cryptol.Prims.Types.
TCAdd | : Num -> Num -> Num |
TCSub | : Num -> Num -> Num |
TCMul | : Num -> Num -> Num |
TCDiv | : Num -> Num -> Num |
TCMod | : Num -> Num -> Num |
TCExp | : Num -> Num -> Num |
TCWidth | : Num -> Num |
TCMin | : Num -> Num -> Num |
TCMax | : Num -> Num -> Num |
TCCeilDiv | : Num -> Num -> Num |
TCCeilMod | : Num -> Num -> Num |
TCLenFromThenTo |
|