RnPat

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

RnPat

# Documentation

rnPat :: HsMatchContext Name -> LPat GhcPs -> (LPat GhcRn -> RnM (a, FreeVars)) -> RnM (a, FreeVars) #

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

rnBindPat :: NameMaker -> LPat GhcPs -> RnM (LPat GhcRn, FreeVars) #

rnPatAndThen :: NameMaker -> Pat GhcPs -> CpsRn (Pat GhcRn) #

data NameMaker #

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

localRecNameMaker :: MiniFixityEnv -> NameMaker #

topRecNameMaker :: MiniFixityEnv -> NameMaker #

isTopRecNameMaker :: NameMaker -> Bool #

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

data HsRecFieldContext #

Constructors

HsRecFieldCon Name |
HsRecFieldPat Name |
HsRecFieldUpd |

rnHsRecUpdFields :: [LHsRecUpdField GhcPs] -> RnM ([LHsRecUpdField GhcRn], FreeVars) #

data CpsRn b #

Instances

Monad CpsRn # |
Instance details Defined in RnPat 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 # |
Instance details Defined in RnPat Methods fmap :: (a -> b) -> CpsRn a -> CpsRn b Source # (<$) :: a -> CpsRn b -> CpsRn a Source #
Applicative CpsRn # |
Instance details Defined in RnPat Methods pure :: a -> CpsRn a Source # (<*>) :: CpsRn (a -> b) -> CpsRn a -> CpsRn b Source # liftA2 :: (a -> b -> c) -> CpsRn a -> CpsRn b -> CpsRn c Source # (*>) :: CpsRn a -> CpsRn b -> CpsRn b Source # (<*) :: CpsRn a -> CpsRn b -> CpsRn a Source #

liftCps :: RnM a -> CpsRn a #

rnLit :: HsLit p -> RnM () #

rnOverLit :: HsOverLit t -> RnM ((HsOverLit GhcRn, Maybe (HsExpr GhcRn)), FreeVars) #

checkTupSize :: Int -> RnM () #

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