Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Futhark.Data.Parser
Description
Megaparsec-based parser for Value
s in the textual value format.
The difference between this and the reader defined in
Futhark.Data.Reader is that we don't try to handle both the
textual and binary format - only the former. On the other hand,
this parser has (much) better error messages and can be easily used
by other parsers (like the ones for FutharkScript or test blocks).
Documentation
parsePrimType :: Parsec Void Text PrimType Source #
Parse the name of a primitive type. Does *not* consume any trailing whitespace, nor does it permit any internal whitespace.
parseType :: Parsec Void Text ValueType Source #
Parse a type. Does *not* consume any trailing whitespace, nor does it permit any internal whitespace.