morley-1.7.0: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Michelson.TypeCheck.TypeCheck

Synopsis

Documentation

data TypeCheckEnv Source #

The typechecking state

runTypeCheckIsolated :: TypeCheck a -> Either TCError a Source #

Run type checker as if it worked isolated from other world - no access to environment of the current contract is allowed.

Use this function for test purposes only or for some utilities when environment does not matter. In particular, it is assumed that whatever we typecheck does not depend on the parameter type of the contract which is being typechecked (because there is no contract that we are typechecking).

runTypeCheckInstrIsolated :: TypeCheckInstr a -> Either TCError a Source #

Similar to runTypeCheckIsolated, but for 'TypeCheckInstr.'

mapTCError :: (TCError -> TCError) -> TypeCheckInstr a -> TypeCheckInstr a Source #

Run TypeCheckInstr and modify thrown errors using given functions.

data TypeCheckMode Source #

Typechecking mode that tells the type checker whether it is typechecking contract code in actual contract, lambda, or test.

data SomeParamType Source #

Constructors

forall t.ParameterScope t => SomeParamType (Sing t) (ParamNotes t) 

Instances

Instances details
Eq SomeParamType Source #

Eq instance of SomeParamType, mainly used in test.

Instance details

Defined in Michelson.TypeCheck.TypeCheck

Show SomeParamType Source #

Show instance of SomeParamType, mainly used in test.

Instance details

Defined in Michelson.TypeCheck.TypeCheck

Buildable SomeParamType Source #

Buildable instance of SomeParamType, mainly used in test.

Instance details

Defined in Michelson.TypeCheck.TypeCheck

mkSomeParamTypeUnsafe :: HasCallStack => ParameterType -> SomeParamType Source #

Construct SomeParamType from ParameterType, mainly used in test.