File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import Prelude hiding (bind)
1313import Control.Applicative.Indexed (class IxApplicative )
1414import Control.Apply.Indexed (class IxApply )
1515import Control.Bind.Indexed (class IxBind , ibind )
16+ import Control.Monad.Indexed (class IxMonad )
1617import Data.Functor.Indexed (class IxFunctor )
1718import Data.Newtype (class Newtype )
1819import Effect (Effect )
@@ -148,6 +149,8 @@ instance ixApplicativeRender :: IxApplicative Render where
148149instance ixBindRender :: IxBind Render where
149150 ibind (Render m) f = Render (Prelude .bind m \a -> case f a of Render b -> b)
150151
152+ instance ixMonadRender :: IxMonad Render
153+
151154-- | Exported for use with qualified-do syntax
152155bind :: forall a b x y z m . IxBind m => m x y a -> (a -> m y z b ) -> m x z b
153156bind = ibind
@@ -168,6 +171,8 @@ instance applicativeRender :: TypeEquals x y => Applicative (Render x y) where
168171instance bindRender :: TypeEquals x y => Bind (Render x y ) where
169172 bind (Render m) f = Render (Prelude .bind m \a -> case f a of Render b -> b)
170173
174+ instance monadRender :: TypeEquals x y => Monad (Render x y )
175+
171176instance semigroupRender :: (TypeEquals x y , Semigroup a ) => Semigroup (Render x y a ) where
172177 append (Render a) (Render b) = Render (append a b)
173178
You can’t perform that action at this time.
0 commit comments