GHC.Cmm.Parser.Monad

ghc-9.2.0.20210331: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Cmm.Parser.Monad

Synopsis

- newtype PD a = PD {
  - unPD :: DynFlags -> HomeUnit -> PState -> ParseResult a
  }
- liftP :: P a -> PD a
- failMsgPD :: (SrcSpan -> PsError) -> PD a
- getProfile :: PD Profile
- getPlatform :: PD Platform
- getPtrOpts :: PD PtrOpts
- getHomeUnitId :: PD UnitId

# Documentation

newtype PD a Source #

Constructors

PD |
Fields unPD :: DynFlags -> HomeUnit -> PState -> ParseResult a

#### Instances

Instances details

Applicative PD # |
Instance details Defined in GHC.Cmm.Parser.Monad Methods pure :: a -> PD a Source # (<*>) :: PD (a -> b) -> PD a -> PD b Source # liftA2 :: (a -> b -> c) -> PD a -> PD b -> PD c Source # (*>) :: PD a -> PD b -> PD b Source # (<*) :: PD a -> PD b -> PD a Source #
Functor PD # |
Instance details Defined in GHC.Cmm.Parser.Monad Methods fmap :: (a -> b) -> PD a -> PD b Source # (<$) :: a -> PD b -> PD a Source #
Monad PD # |
Instance details Defined in GHC.Cmm.Parser.Monad Methods (>>=) :: PD a -> (a -> PD b) -> PD b Source # (>>) :: PD a -> PD b -> PD b Source # return :: a -> PD a Source #
HasDynFlags PD # |
Instance details Defined in GHC.Cmm.Parser.Monad Methods getDynFlags :: PD DynFlags Source #

liftP :: P a -> PD a Source #

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

getProfile :: PD Profile Source #

getPlatform :: PD Platform Source #

getPtrOpts :: PD PtrOpts Source #

getHomeUnitId :: PD UnitId Source #

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