Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
GHC.Parser.Utils
Synopsis
- isStmt :: ParserOpts -> String -> Bool
- hasImport :: ParserOpts -> String -> Bool
- isImport :: ParserOpts -> String -> Bool
- isDecl :: ParserOpts -> String -> Bool
Documentation
isStmt :: ParserOpts -> String -> Bool #
Returns True
if passed string is a statement.
hasImport :: ParserOpts -> String -> Bool #
Returns True
if passed string has an import declaration.
isImport :: ParserOpts -> String -> Bool #
Returns True
if passed string is an import declaration.
isDecl :: ParserOpts -> String -> Bool #
Returns True
if passed string is a declaration but not a splice.