[Haskell-cafe] RebindableSyntax on individual do blocks
hesselink at gmail.com
Mon Jun 22 19:18:10 UTC 2015
RebindableSyntax uses whatever (>>), (>>=) and return are in scope. So
if you bind them in a `let` or `where`, you should be able to use
different ones for different do blocks.
On Mon, Jun 22, 2015 at 8:39 PM, Mark Roberts
<markandrusroberts at gmail.com> wrote:
> I have a program that uses both monads and indexed monads, and I'd like to
> use do-notation for each in the same source file. Is there a way to rebind
> syntax for only the do blocks that make use of an indexed monad?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe