File tree 4 files changed +1
-17
lines changed
4 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Notable changes to this project are documented in this file. The format is based
6
6
7
7
Breaking changes:
8
8
- Migrate FFI to ES modules (#218 by @kl0tl and @JordanMartinez )
9
+ - Drop deprecated ` group' ` and ` empty ` (#219 by @JordanMartinez )
9
10
10
11
New features:
11
12
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ module Data.Array
100
100
, span
101
101
, group
102
102
, groupAll
103
- , group'
104
103
, groupBy
105
104
, groupAllBy
106
105
@@ -148,7 +147,6 @@ import Data.Traversable (sequence, traverse)
148
147
import Data.Tuple (Tuple (..), fst , snd )
149
148
import Data.Unfoldable (class Unfoldable , unfoldr )
150
149
import Partial.Unsafe (unsafePartial )
151
- import Prim.TypeError (class Warn , Text )
152
150
153
151
-- | Convert an `Array` into an `Unfoldable` structure.
154
152
toUnfoldable :: forall f . Unfoldable f => Array ~> f
@@ -983,10 +981,6 @@ group xs = groupBy eq xs
983
981
groupAll :: forall a . Ord a => Array a -> Array (NonEmptyArray a )
984
982
groupAll = groupAllBy compare
985
983
986
- -- | Deprecated previous name of `groupAll`.
987
- group' :: forall a . Warn (Text " 'group\' ' is deprecated, use 'groupAll' instead" ) => Ord a => Array a -> Array (NonEmptyArray a )
988
- group' = groupAll
989
-
990
984
-- | Group equal, consecutive elements of an array into arrays, using the
991
985
-- | specified equivalence relation to determine equality.
992
986
-- |
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ module Data.Array.NonEmpty
80
80
, span
81
81
, group
82
82
, groupAll
83
- , group'
84
83
, groupBy
85
84
, groupAllBy
86
85
@@ -134,7 +133,6 @@ import Data.Tuple (Tuple(..))
134
133
import Data.Unfoldable (class Unfoldable )
135
134
import Data.Unfoldable1 (class Unfoldable1 , unfoldr1 )
136
135
import Partial.Unsafe (unsafePartial )
137
- import Prim.TypeError (class Warn , Text )
138
136
import Unsafe.Coerce (unsafeCoerce )
139
137
140
138
-- | Internal - adapt an Array transform to NonEmptyArray
@@ -424,10 +422,6 @@ group = unsafeAdapt $ A.group
424
422
groupAll :: forall a . Ord a => NonEmptyArray a -> NonEmptyArray (NonEmptyArray a )
425
423
groupAll = groupAllBy compare
426
424
427
- -- | Deprecated previous name of `groupAll`.
428
- group' :: forall a . Warn (Text " 'group\' ' is deprecated, use 'groupAll' instead" ) => Ord a => NonEmptyArray a -> NonEmptyArray (NonEmptyArray a )
429
- group' = unsafeAdapt $ A .groupAll
430
-
431
425
-- | Group equal, consecutive elements of an array into arrays, using the
432
426
-- | specified equivalence relation to determine equality.
433
427
-- |
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ module Data.Array.ST
8
8
, run
9
9
, withArray
10
10
, new
11
- , empty
12
11
, peek
13
12
, poke
14
13
, modify
@@ -34,7 +33,6 @@ import Prelude
34
33
import Control.Monad.ST as ST
35
34
import Control.Monad.ST (ST , Region )
36
35
import Data.Maybe (Maybe (..))
37
- import Prim.TypeError (class Warn , Text )
38
36
39
37
-- | A reference to a mutable array.
40
38
-- |
@@ -80,9 +78,6 @@ foreign import unsafeThaw :: forall h a. Array a -> ST h (STArray h a)
80
78
-- | Create a new, empty mutable array.
81
79
foreign import new :: forall h a . ST h (STArray h a )
82
80
83
- empty :: forall h a . Warn (Text " 'Data.Array.ST.empty' is deprecated, use 'Data.Array.ST.new' instead" ) => ST h (STArray h a )
84
- empty = new
85
-
86
81
-- | Create a mutable copy of an immutable array.
87
82
foreign import thaw :: forall h a . Array a -> ST h (STArray h a )
88
83
You can’t perform that action at this time.
0 commit comments