RnPat

ghc-8.0.0.20160421: The GHC API

Safe Haskell | None
Language | Haskell2010

RnPat

# Documentation

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

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

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

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

data NameMaker Source #

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

localRecNameMaker :: MiniFixityEnv -> NameMaker Source #

topRecNameMaker :: MiniFixityEnv -> NameMaker Source #

isTopRecNameMaker :: NameMaker -> Bool Source #

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

data HsRecFieldContext Source #

Constructors

HsRecFieldCon Name |
HsRecFieldPat Name |
HsRecFieldUpd |

rnHsRecUpdFields :: [LHsRecUpdField RdrName] -> RnM ([LHsRecUpdField Name], FreeVars) Source #

data CpsRn b Source #

Instances

Monad CpsRn # |
Methods (>>=) :: CpsRn a -> (a -> CpsRn b) -> CpsRn b Source # (>>) :: CpsRn a -> CpsRn b -> CpsRn b Source # return :: a -> CpsRn a Source # fail :: String -> CpsRn a Source #
Functor CpsRn # |
Methods fmap :: (a -> b) -> CpsRn a -> CpsRn b Source # (<$) :: a -> CpsRn b -> CpsRn a Source #
Applicative CpsRn # |
Methods pure :: a -> CpsRn a Source # (<*>) :: CpsRn (a -> b) -> CpsRn a -> CpsRn b Source # (*>) :: CpsRn a -> CpsRn b -> CpsRn b Source # (<*) :: CpsRn a -> CpsRn b -> CpsRn a Source #

liftCps :: RnM a -> CpsRn a Source #

rnLit :: HsLit -> RnM () Source #

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

checkTupSize :: Int -> RnM () Source #

patSigErr :: Outputable a => a -> SDoc Source #