RnPat

ghc-7.10.3: The GHC API

Safe Haskell | None
Language | Haskell2010

RnPat

# Documentation

rnPat :: HsMatchContext Name -> LPat RdrName -> (LPat Name -> RnM (a, FreeVars)) -> RnM (a, FreeVars)

rnPats :: HsMatchContext Name -> [LPat RdrName] -> ([LPat Name] -> RnM (a, FreeVars)) -> RnM (a, FreeVars)

rnBindPat :: NameMaker -> LPat RdrName -> RnM (LPat Name, FreeVars)

rnPatAndThen :: NameMaker -> Pat RdrName -> CpsRn (Pat Name)

data NameMaker

applyNameMaker :: NameMaker -> Located RdrName -> RnM (Located Name)

localRecNameMaker :: MiniFixityEnv -> NameMaker

topRecNameMaker :: MiniFixityEnv -> NameMaker

isTopRecNameMaker :: NameMaker -> Bool

rnHsRecFields :: forall arg. HsRecFieldContext -> (RdrName -> arg) -> HsRecFields RdrName (Located arg) -> RnM ([LHsRecField Name (Located arg)], FreeVars)

data HsRecFieldContext

Constructors

HsRecFieldCon Name |
HsRecFieldPat Name |
HsRecFieldUpd |

data CpsRn b

Instances

Monad CpsRn |
Functor CpsRn |
Applicative CpsRn |

liftCps :: RnM a -> CpsRn a

rnLit :: HsLit -> RnM ()

rnOverLit :: HsOverLit t -> RnM (HsOverLit Name, FreeVars)

checkTupSize :: Int -> RnM ()

patSigErr :: Outputable a => a -> SDoc