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.
fix
1 parent 46a65db commit 3978034Copy full SHA for 3978034
src/Control/Lazy.purs
@@ -20,4 +20,6 @@ instance lazyUnit :: Lazy Unit where
20
-- |
21
-- | The `Lazy` instance allows us to generate the result lazily.
22
fix :: forall l. Lazy l => (l -> l) -> l
23
-fix f = defer (\_ -> f (fix f))
+fix f = go
24
+ where
25
+ go = defer \_ -> f go
0 commit comments