Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains various datatypes and functions which are common for contract registry packages (e.g. morley-ledgers).
Synopsis
- data ContractInfo = forall cp st vd.NiceStorage st => ContractInfo {
- ciContract :: Contract cp st vd
- ciIsDocumented :: Bool
- ciStorageParser :: Maybe (Parser st)
- ciStorageNotes :: Maybe (Notes (ToT st))
- newtype ContractRegistry = ContractRegistry {}
- (?::) :: Text -> a -> (Text, a)
- data CmdLnArgs
- argParser :: ContractRegistry -> DGitRevision -> Parser CmdLnArgs
- runContractRegistry :: ContractRegistry -> CmdLnArgs -> IO ()
- printContractFromRegistryDoc :: Maybe Text -> ContractRegistry -> DGitRevision -> Maybe FilePath -> IO ()
Registry types
data ContractInfo Source #
forall cp st vd.NiceStorage st => ContractInfo | |
|
newtype ContractRegistry Source #
Instances
Buildable ContractRegistry Source # | |
Defined in Lorentz.ContractRegistry build :: ContractRegistry -> Doc buildList :: [ContractRegistry] -> Doc |
Things to do in main
ContractRegistry
actions parsed from CLI.
argParser :: ContractRegistry -> DGitRevision -> Parser CmdLnArgs Source #
runContractRegistry :: ContractRegistry -> CmdLnArgs -> IO () Source #
Run an action operating with ContractRegistry
.
Building blocks
printContractFromRegistryDoc :: Maybe Text -> ContractRegistry -> DGitRevision -> Maybe FilePath -> IO () Source #