Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Control/Lazy.purs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Lazy l where
instance lazyFn :: Lazy (a -> b) where
defer f = \x -> f unit x

instance lazyUnit :: Lazy Unit where
defer _ = unit

-- | `fix` defines a value as the fixed point of a function.
-- |
-- | The `Lazy` instance allows us to generate the result lazily.
Expand Down