Safe Haskell | None |
---|---|
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.(NiceParameterFull cp, NiceStorage st) => ContractInfo {
- ciContract :: Contract cp st
- 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 :: Text -> ContractRegistry -> DGitRevision -> Maybe FilePath -> IO ()
Registry types
data ContractInfo Source #
forall cp st.(NiceParameterFull cp, NiceStorage st) => ContractInfo | |
|
newtype ContractRegistry Source #
Instances
Buildable ContractRegistry Source # | |
Defined in Lorentz.ContractRegistry build :: ContractRegistry -> Builder # |
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 :: Text -> ContractRegistry -> DGitRevision -> Maybe FilePath -> IO () Source #