| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
This module exists to work nicely with the QualifiedDo extension.
import qualified Language.Haskell.TH.CodeDo as Code myExample :: Monad m => Code m a -> Code m a -> Code m a myExample opt1 opt2 = Code.do x <- someSideEffect -- This one is of type `M Bool` if x then opt1 else opt2
(>>=) :: Monad m => m a -> (a -> Code m b) -> Code m b Source
Module over monad operator for Code
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/template-haskell-2.23.0.0-22c1/Language-Haskell-TH-CodeDo.html