Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities used for contracts discovery.
All the discovery logic resides in 'lorentz-discover' executable.
Synopsis
- class IsContract c where
- toUntypedContract :: c -> Contract
- data ExportedContractInfo = ExportedContractInfo {}
- data ExportedContractDecl = ExportedContractDecl {}
- isHaskellModule :: FilePath -> Bool
- haskellExportsParser :: Parsec Void Text [ExportedContractInfo]
Documentation
class IsContract c where Source #
Defined for values representing a contract.
toUntypedContract :: c -> Contract Source #
Instances
IsContract Contract Source # | |
Defined in Lorentz.Discover toUntypedContract :: Contract -> Contract Source # | |
(SingI cp, SingI st) => IsContract (Contract cp st) Source # | |
Defined in Lorentz.Discover toUntypedContract :: Contract cp st -> Contract0 Source # | |
(SingI (ToT cp), SingI (ToT st), NoOperation cp, NoOperation st, NoBigMap cp, CanHaveBigMap st) => IsContract (Contract cp st) Source # | |
Defined in Lorentz.Discover toUntypedContract :: Contract cp st -> Contract0 Source # |
data ExportedContractInfo Source #
Information about a contract required for contracts registry.
Instances
Eq ExportedContractInfo Source # | |
Defined in Lorentz.Discover (==) :: ExportedContractInfo -> ExportedContractInfo -> Bool # (/=) :: ExportedContractInfo -> ExportedContractInfo -> Bool # | |
Show ExportedContractInfo Source # | |
Defined in Lorentz.Discover showsPrec :: Int -> ExportedContractInfo -> ShowS # show :: ExportedContractInfo -> String # showList :: [ExportedContractInfo] -> ShowS # |
data ExportedContractDecl Source #
Contract names, for Haskell and for humans.
Instances
Eq ExportedContractDecl Source # | |
Defined in Lorentz.Discover (==) :: ExportedContractDecl -> ExportedContractDecl -> Bool # (/=) :: ExportedContractDecl -> ExportedContractDecl -> Bool # | |
Show ExportedContractDecl Source # | |
Defined in Lorentz.Discover showsPrec :: Int -> ExportedContractDecl -> ShowS # show :: ExportedContractDecl -> String # showList :: [ExportedContractDecl] -> ShowS # |
isHaskellModule :: FilePath -> Bool Source #