Safe Haskell | None |
---|---|
Language | Haskell2010 |
Interface to the Futhark parser.
Synopsis
- parseFuthark :: FilePath -> Text -> Either ParseError UncheckedProg
- parseExp :: FilePath -> Text -> Either ParseError UncheckedExp
- parseModExp :: FilePath -> Text -> Either ParseError (ModExpBase NoInfo Name)
- parseType :: FilePath -> Text -> Either ParseError UncheckedTypeExp
- parseValue :: FilePath -> Text -> Either ParseError Value
- parseValues :: FilePath -> Text -> Either ParseError [Value]
- parseDecOrExpIncrM :: Monad m => m Text -> FilePath -> Text -> m (Either ParseError (Either UncheckedDec UncheckedExp))
- data ParseError
Documentation
parseFuthark :: FilePath -> Text -> Either ParseError UncheckedProg Source #
parseExp :: FilePath -> Text -> Either ParseError UncheckedExp Source #
parseModExp :: FilePath -> Text -> Either ParseError (ModExpBase NoInfo Name) Source #
parseType :: FilePath -> Text -> Either ParseError UncheckedTypeExp Source #
parseValue :: FilePath -> Text -> Either ParseError Value Source #
parseValues :: FilePath -> Text -> Either ParseError [Value] Source #
parseDecOrExpIncrM :: Monad m => m Text -> FilePath -> Text -> m (Either ParseError (Either UncheckedDec UncheckedExp)) Source #
Parse either an expression or a declaration incrementally; favouring declarations in case of ambiguity.
data ParseError Source #
A parse error. Use show
to get a human-readable description.
Instances
Show ParseError Source # | |
Defined in Language.Futhark.Parser.Monad showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # |