ghc-8.2.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

NCGMonad

Documentation

data NatM result Source #

Instances

Monad NatM Source # 

Methods

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

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

return :: a -> NatM a #

fail :: String -> NatM a #

Functor NatM Source # 

Methods

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

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

Applicative NatM Source # 

Methods

pure :: a -> NatM a #

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

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

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

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

MonadUnique NatM Source # 
HasDynFlags NatM Source # 
CmmMakeDynamicReferenceM NatM Source # 

mapAccumLNat :: (acc -> x -> NatM (acc, y)) -> acc -> [x] -> NatM (acc, [y]) Source #