Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type TcInstrHandler = forall inp. Typeable inp => ExpandedInstr -> HST inp -> TypeCheckInstr (SomeInstr inp)
- type TcOriginatedContracts = Map Address Type
- type TcResult inp = Either TCError (SomeInstr inp)
- data TypeCheckEnv = TypeCheckEnv {}
- type TypeCheck a = ExceptT TCError (State TypeCheckEnv) a
- runTypeCheck :: Type -> TcOriginatedContracts -> TypeCheck a -> Either TCError a
- type TypeCheckInstr a = ReaderT InstrCallStack (ExceptT TCError (State TypeCheckEnv)) a
- runTypeCheckTest :: TypeCheck a -> Either TCError a
- tcContractParamL :: Lens' TypeCheckEnv Type
- tcContractsL :: Lens' TypeCheckEnv TcOriginatedContracts
- tcExtFramesL :: Lens' TypeCheckEnv TcExtFrames
Documentation
type TcInstrHandler = forall inp. Typeable inp => ExpandedInstr -> HST inp -> TypeCheckInstr (SomeInstr inp) Source #
data TypeCheckEnv Source #
The typechecking state
runTypeCheck :: Type -> TcOriginatedContracts -> TypeCheck a -> Either TCError a Source #
type TypeCheckInstr a = ReaderT InstrCallStack (ExceptT TCError (State TypeCheckEnv)) a Source #