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

Copyright | (c) The GHC Team 1997-2000
License | BSD-3-Clause
Maintainer | Andreas Abel
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell98

Language.Haskell.ParseUtils

Description

Utilities for the Haskell parser.

# Documentation

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

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

checkPrec :: Integer -> P Int Source #

checkContext :: HsType -> P HsContext Source #

checkAssertion :: HsType -> P HsAsst Source #

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

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

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

checkPattern :: HsExp -> P HsPat Source #

checkExpr :: HsExp -> P HsExp Source #

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

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

checkUnQual :: HsQName -> P HsName Source #

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