morley-1.0.0: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Michelson.Typed.T

Description

Module, providing CT and T data types, representing Michelson language types without annotations.

Synopsis

Documentation

data CT Source #

Instances
Bounded CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

minBound :: CT #

maxBound :: CT #

Enum CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

succ :: CT -> CT #

pred :: CT -> CT #

toEnum :: Int -> CT #

fromEnum :: CT -> Int #

enumFrom :: CT -> [CT] #

enumFromThen :: CT -> CT -> [CT] #

enumFromTo :: CT -> CT -> [CT] #

enumFromThenTo :: CT -> CT -> CT -> [CT] #

Eq CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

(==) :: CT -> CT -> Bool #

(/=) :: CT -> CT -> Bool #

Data CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CT -> c CT #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CT #

toConstr :: CT -> Constr #

dataTypeOf :: CT -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CT) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CT) #

gmapT :: (forall b. Data b => b -> b) -> CT -> CT #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CT -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CT -> r #

gmapQ :: (forall d. Data d => d -> u) -> CT -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CT -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CT -> m CT #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CT -> m CT #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CT -> m CT #

Ord CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

compare :: CT -> CT -> Ordering #

(<) :: CT -> CT -> Bool #

(<=) :: CT -> CT -> Bool #

(>) :: CT -> CT -> Bool #

(>=) :: CT -> CT -> Bool #

max :: CT -> CT -> CT #

min :: CT -> CT -> CT #

Show CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

showsPrec :: Int -> CT -> ShowS #

show :: CT -> String #

showList :: [CT] -> ShowS #

Generic CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Associated Types

type Rep CT :: Type -> Type #

Methods

from :: CT -> Rep CT x #

to :: Rep CT x -> CT #

Lift CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

lift :: CT -> Q Exp #

Arbitrary CT Source # 
Instance details

Defined in Util.Test.Arbitrary

Methods

arbitrary :: Gen CT #

shrink :: CT -> [CT] #

ToJSON CT Source # 
Instance details

Defined in Michelson.Untyped.Type

FromJSON CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Buildable CT Source # 
Instance details

Defined in Michelson.Untyped.Type

Methods

build :: CT -> Builder #

ToADTArbitrary CT Source # 
Instance details

Defined in Util.Test.Arbitrary

SingKind CT Source # 
Instance details

Defined in Michelson.Typed.Sing

Associated Types

type Demote CT = (r :: Type) #

RenderDoc CT Source # 
Instance details

Defined in Michelson.Untyped.Type

SingI CInt Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CInt #

SingI CNat Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CNat #

SingI CString Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CString #

SingI CBytes Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CBytes #

SingI CMutez Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CMutez #

SingI CBool Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CBool #

SingI CKeyHash Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CKeyHash #

SingI CTimestamp Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CTimestamp #

SingI CAddress Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing CAddress #

type Rep CT Source # 
Instance details

Defined in Michelson.Untyped.Type

type Rep CT = D1 (MetaData "CT" "Michelson.Untyped.Type" "morley-1.0.0-Jo9z4xumEmKBIsSgg9Z0MH" False) (((C1 (MetaCons "CInt" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CNat" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "CString" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CBytes" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "CMutez" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CBool" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "CKeyHash" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "CTimestamp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CAddress" PrefixI False) (U1 :: Type -> Type)))))
data Sing (a :: CT) Source #

Instance of data family Sing for CT.

Instance details

Defined in Michelson.Typed.Sing

data Sing (a :: CT) where
type Demote CT Source # 
Instance details

Defined in Michelson.Typed.Sing

type Demote CT = CT

data T Source #

Michelson language type with annotations stripped off.

Instances
Eq T Source # 
Instance details

Defined in Michelson.Typed.T

Methods

(==) :: T -> T -> Bool #

(/=) :: T -> T -> Bool #

Show T Source # 
Instance details

Defined in Michelson.Typed.T

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

Buildable T Source # 
Instance details

Defined in Michelson.Typed.T

Methods

build :: T -> Builder #

SingKind T Source # 
Instance details

Defined in Michelson.Typed.Sing

Associated Types

type Demote T = (r :: Type) #

Methods

fromSing :: Sing a -> Demote T #

toSing :: Demote T -> SomeSing T #

SingI TKey Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing TKey #

SingI TUnit Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing TUnit #

SingI TSignature Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing TSignature #

SingI TChainId Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing TChainId #

SingI TOperation Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing TOperation #

(SingI t, Typeable t) => SingI (Tc t :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (Tc t) #

(SingI a, Typeable a) => SingI (TOption a :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TOption a) #

(SingI a, Typeable a) => SingI (TList a :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TList a) #

(SingI a, Typeable a) => SingI (TSet a :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TSet a) #

(SingI a, Typeable a) => SingI (TContract a :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TContract a) #

(SingI a, Typeable a, Typeable b, SingI b) => SingI (TPair a b :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TPair a b) #

(SingI a, Typeable a, Typeable b, SingI b) => SingI (TOr a b :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TOr a b) #

(SingI a, Typeable a, Typeable b, SingI b) => SingI (TLambda a b :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TLambda a b) #

(SingI a, Typeable a, Typeable b, SingI b) => SingI (TMap a b :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TMap a b) #

(SingI a, Typeable a, Typeable b, SingI b) => SingI (TBigMap a b :: T) Source # 
Instance details

Defined in Michelson.Typed.Sing

Methods

sing :: Sing (TBigMap a b) #

(Typeable t, SingI t) => CheckScope (UnpackedValScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

(Typeable t, SingI t) => CheckScope (PackedValScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

(Typeable t, SingI t) => CheckScope (ConstantScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

(Typeable t, SingI t) => CheckScope (StorageScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

(Typeable t, SingI t) => CheckScope (ParameterScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

(Typeable t, SingI t) => CheckScope (ComparabilityScope t) Source # 
Instance details

Defined in Michelson.Typed.Scope

data Sing (a :: T) Source #

Instance of data family Sing for T. Custom instance is implemented in order to inject Typeable constraint for some of constructors.

Instance details

Defined in Michelson.Typed.Sing

data Sing (a :: T) where
type Demote T Source # 
Instance details

Defined in Michelson.Typed.Sing

type Demote T = T

toUType :: T -> Type Source #

Converts from T to Type.

buildStack :: [T] -> Builder Source #

Format type stack in a pretty way.