Language.Haskell.ParseUtils

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

Copyright | (c) The GHC Team, 1997-2000
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | libraries@haskell.org
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell98

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]