Safe Haskell | None |
---|---|
Language | Haskell2010 |
Interface to the Futhark parser.
Synopsis
- parseFuthark :: FilePath -> Text -> Either SyntaxError UncheckedProg
- parseExp :: FilePath -> Text -> Either SyntaxError UncheckedExp
- parseModExp :: FilePath -> Text -> Either SyntaxError (ModExpBase NoInfo Name)
- parseType :: FilePath -> Text -> Either SyntaxError UncheckedTypeExp
- parseValue :: FilePath -> Text -> Either SyntaxError Value
- parseValues :: FilePath -> Text -> Either SyntaxError [Value]
- parseDecOrExpIncrM :: Monad m => m Text -> FilePath -> Text -> m (Either SyntaxError (Either UncheckedDec UncheckedExp))
- data SyntaxError = SyntaxError {}
Documentation
parseFuthark :: FilePath -> Text -> Either SyntaxError UncheckedProg Source #
parseExp :: FilePath -> Text -> Either SyntaxError UncheckedExp Source #
parseModExp :: FilePath -> Text -> Either SyntaxError (ModExpBase NoInfo Name) Source #
parseType :: FilePath -> Text -> Either SyntaxError UncheckedTypeExp Source #
parseValue :: FilePath -> Text -> Either SyntaxError Value Source #
parseValues :: FilePath -> Text -> Either SyntaxError [Value] Source #
parseDecOrExpIncrM :: Monad m => m Text -> FilePath -> Text -> m (Either SyntaxError (Either UncheckedDec UncheckedExp)) Source #
Parse either an expression or a declaration incrementally; favouring declarations in case of ambiguity.