@@ -10,7 +10,7 @@
1010--
1111-- |
1212-- This module implements the desugaring pass which replaces do-notation statements with
13−-- appropriate calls to (>>=) from the Prelude.Monad type class.
13+-- appropriate calls to bind from the Prelude.Monad type class.
1414--
1515-----------------------------------------------------------------------------
1616
@@ -32,7 +32,7 @@ import Control.Monad.Error.Class (MonadError(..))
3232import Control.Monad.Supply.Class
3333
3434-- |
35−-- Replace all @DoNotationBind@ and @DoNotationValue@ constructors with applications of the Prelude.(>>=) function,
35+-- Replace all @DoNotationBind@ and @DoNotationValue@ constructors with applications of the Prelude.bind function,
3636-- and all @DoNotationLet@ constructors with let expressions.
3737--
3838desugarDoModule :: forall m. (Applicative m, MonadSupply m, MonadError MultipleErrors m) => Module -> m Module
@@ -45,7 +45,7 @@ desugarDo d =
4545 in f d
4646 where
4747 bind :: Expr
48− bind = Var (Qualified Nothing (Op (C.>>=)))
48+ bind = Var (Qualified Nothing (Ident (C.bind)))
4949
5050 replace :: Expr -> m Expr
5151 replace (Do els) = go els