haskell-src-1.0.1.5: Support for manipulating Haskell source code

Portability | portable
Stability | experimental
Maintainer | libraries@haskell.org
Safe Haskell | None

Language.Haskell.ParseUtils

Description

Utilities for the Haskell parser.

# Documentation

splitTyConApp :: HsType -> P (HsName, [HsType])

mkRecConstrOrUpdate :: HsExp -> [HsFieldUpdate] -> P HsExp

checkPrec :: Integer -> P Int

checkContext :: HsType -> P HsContext

checkAssertion :: HsType -> P HsAsst

checkDataHeader :: HsQualType -> P (HsContext, HsName, [HsName])

checkClassHeader :: HsQualType -> P (HsContext, HsName, [HsName])

checkInstHeader :: HsQualType -> P (HsContext, HsQName, [HsType])

checkPattern :: HsExp -> P HsPat

checkExpr :: HsExp -> P HsExp

checkValDef :: SrcLoc -> HsExp -> HsRhs -> [HsDecl] -> P HsDecl

checkClassBody :: [HsDecl] -> P [HsDecl]

checkUnQual :: HsQName -> P HsName

checkRevDecls :: [HsDecl] -> P [HsDecl]