Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Core parser types
Synopsis
- type Parser = Parsec CustomParserException Text
- data MichelsonSource where
- MSFile FilePath
- MSName Text
- MSCode SrcLoc
- MSUnspecified
- pattern MSStdin :: MichelsonSource
- pattern MSCli :: MichelsonSource
- codeSrc :: HasCallStack => MichelsonSource
Documentation
data MichelsonSource Source #
Where a contract or value in Michelson comes from.
MSFile FilePath | From given file. |
MSName Text | Only source name is known. |
MSCode SrcLoc | Defined in Haskell code. |
MSUnspecified | Some unknown source. |
pattern MSStdin :: MichelsonSource | Designates |
pattern MSCli :: MichelsonSource | Designates command line input source. |
Instances
IsString MichelsonSource Source # | |
Defined in Morley.Michelson.Parser.Types fromString :: String -> MichelsonSource # | |
Show MichelsonSource Source # | |
Defined in Morley.Michelson.Parser.Types showsPrec :: Int -> MichelsonSource -> ShowS # show :: MichelsonSource -> String # showList :: [MichelsonSource] -> ShowS # | |
Buildable MichelsonSource Source # | |
Defined in Morley.Michelson.Parser.Types build :: MichelsonSource -> Builder # | |
Eq MichelsonSource Source # | |
Defined in Morley.Michelson.Parser.Types (==) :: MichelsonSource -> MichelsonSource -> Bool # (/=) :: MichelsonSource -> MichelsonSource -> Bool # |
codeSrc :: HasCallStack => MichelsonSource Source #
MichelsonSource
that points to the current position.