ghc-9.12.0.20241114: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Cmm.Opt

Documentation

constantFoldNode :: forall (e :: Extensibility) (x :: Extensibility). CmmNode e x -> Opt (CmmNode e x) Source #

data Opt a Source #

Instances

Instances details
MonadGetUnique Opt Source # 
Instance details

Defined in GHC.Cmm.Opt

Applicative Opt Source # 
Instance details

Defined in GHC.Cmm.Opt

Methods

pure :: a -> Opt a #

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

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

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

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

Functor Opt Source # 
Instance details

Defined in GHC.Cmm.Opt

Methods

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

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

Monad Opt Source # 
Instance details

Defined in GHC.Cmm.Opt

Methods

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

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

return :: a -> Opt a #