ghc-lib-0.20210228: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Cmm.Parser.Monad

Synopsis

Documentation

newtype PD a Source #

Constructors

PD 

Fields

Instances

Instances details
Monad PD Source # 
Instance details

Defined in GHC.Cmm.Parser.Monad

Methods

(>>=) :: PD a -> (a -> PD b) -> PD b #

(>>) :: PD a -> PD b -> PD b #

return :: a -> PD a #

Functor PD Source # 
Instance details

Defined in GHC.Cmm.Parser.Monad

Methods

fmap :: (a -> b) -> PD a -> PD b #

(<$) :: a -> PD b -> PD a #

Applicative PD Source # 
Instance details

Defined in GHC.Cmm.Parser.Monad

Methods

pure :: a -> PD a #

(<*>) :: PD (a -> b) -> PD a -> PD b #

liftA2 :: (a -> b -> c) -> PD a -> PD b -> PD c #

(*>) :: PD a -> PD b -> PD b #

(<*) :: PD a -> PD b -> PD a #

HasDynFlags PD Source # 
Instance details

Defined in GHC.Cmm.Parser.Monad

liftP :: P a -> PD a Source #

failMsgPD :: (SrcSpan -> PsError) -> PD a Source #

getProfile :: PD Profile Source #

getPlatform :: PD Platform Source #

getHomeUnitId :: PD UnitId Source #

Return the UnitId of the home-unit. This is used to create labels.