We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc730a commit 489144bCopy full SHA for 489144b
src/Control/Monad/Free.purs
@@ -91,7 +91,7 @@ suspendF f = fromView (Bind (unsafeCoerceF (pure f)) unsafeCoerceVal)
91
-- | Use a natural transformation to change the generating type constructor of a
92
-- | free monad.
93
hoistFree :: forall f g. (f ~> g) -> Free f ~> Free g
94
-hoistFree k = foldFree (liftF <<< k)
+hoistFree k = substFree (liftF <<< k)
95
96
-- | Embed computations in one `Free` monad as computations in the `Free` monad
97
-- | for a coproduct type constructor.
0 commit comments