Safe Haskell | None |
---|---|
Language | Haskell2010 |
Michelson types represented in untyped model.
Synopsis
- data Type = Type ~T TypeAnn
- data Comparable = Comparable CT TypeAnn
- compToType :: Comparable -> Type
- typeToComp :: Type -> Maybe Comparable
- data T
- data CT
- pattern Tint :: T
- pattern Tnat :: T
- pattern Tstring :: T
- pattern Tbytes :: T
- pattern Tmutez :: T
- pattern Tbool :: T
- pattern Tkey_hash :: T
- pattern Ttimestamp :: T
- pattern Taddress :: T
- tint :: T
- tnat :: T
- tstring :: T
- tbytes :: T
- tmutez :: T
- tbool :: T
- tkeyHash :: T
- ttimestamp :: T
- taddress :: T
- toption :: Type -> T
- tpair :: Type -> Type -> T
- tor :: Type -> Type -> T
- tyint :: Type
- tynat :: Type
- tyunit :: Type
- tybool :: Type
- typair :: Type -> Type -> Type
- tyor :: Type -> Type -> Type
- tyImplicitAccountParam :: Type
- isAtomicType :: Type -> Bool
- isKey :: Type -> Bool
- isSignature :: Type -> Bool
- isComparable :: Type -> Bool
- isMutez :: Type -> Bool
- isKeyHash :: Type -> Bool
- isBool :: Type -> Bool
- isString :: Type -> Bool
- isInteger :: Type -> Bool
- isTimestamp :: Type -> Bool
- isNat :: Type -> Bool
- isInt :: Type -> Bool
- isBytes :: Type -> Bool
Documentation
Instances
data Comparable Source #
Instances
compToType :: Comparable -> Type Source #
typeToComp :: Type -> Maybe Comparable Source #
Instances
Instances
pattern Ttimestamp :: T Source #
ttimestamp :: T Source #
tyImplicitAccountParam :: Type Source #
For implicit account, which type its parameter seems to have from outside.
isAtomicType :: Type -> Bool Source #
isSignature :: Type -> Bool Source #
isComparable :: Type -> Bool Source #
isTimestamp :: Type -> Bool Source #