File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
7
7
Breaking changes:
8
8
- Update project and deps to PureScript v0.15.0 (#123 by @JordanMartinez )
9
9
- Drop deprecated ` MonadZero ` instance (#122 by @JordanMartinez )
10
+ - Drop deprecated ` unfoldCofree ` ; use ` buildCofree ` instead (#124 by @JordanMartinez )
10
11
11
12
New features:
12
13
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ module Control.Comonad.Cofree
7
7
, head
8
8
, tail
9
9
, hoistCofree
10
- , unfoldCofree
11
10
, buildCofree
12
11
, explore
13
12
, exploreM
@@ -61,17 +60,6 @@ tail (Cofree c) = snd (force c)
61
60
hoistCofree :: forall f g . Functor f => (f ~> g ) -> Cofree f ~> Cofree g
62
61
hoistCofree nat (Cofree c) = Cofree (map (nat <<< map (hoistCofree nat)) <$> c)
63
62
64
- -- | This signature is deprecated and will be replaced by `buildCofree` in a
65
- -- | future release.
66
- unfoldCofree
67
- :: forall f s a
68
- . Functor f
69
- => (s -> a )
70
- -> (s -> f s )
71
- -> s
72
- -> Cofree f a
73
- unfoldCofree e n = buildCofree (\s -> Tuple (e s) (n s))
74
-
75
63
-- | Recursively unfolds a `Cofree` structure given a seed.
76
64
buildCofree
77
65
:: forall f s a
You can’t perform that action at this time.
0 commit comments