diff --git a/CHANGELOG.md b/CHANGELOG.md index 0263488..bb4a185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Notable changes to this project are documented in this file. The format is based Breaking changes: - Migrate FFI to ES modules (#218 by @kl0tl and @JordanMartinez) +- Drop deprecated `group'` and `empty` (#219 by @JordanMartinez) New features: diff --git a/src/Data/Array.purs b/src/Data/Array.purs index d329594..6bc035a 100644 --- a/src/Data/Array.purs +++ b/src/Data/Array.purs @@ -100,7 +100,6 @@ module Data.Array , span , group , groupAll - , group' , groupBy , groupAllBy @@ -148,7 +147,6 @@ import Data.Traversable (sequence, traverse) import Data.Tuple (Tuple(..), fst, snd) import Data.Unfoldable (class Unfoldable, unfoldr) import Partial.Unsafe (unsafePartial) -import Prim.TypeError (class Warn, Text) -- | Convert an `Array` into an `Unfoldable` structure. toUnfoldable :: forall f. Unfoldable f => Array ~> f @@ -983,10 +981,6 @@ group xs = groupBy eq xs groupAll :: forall a. Ord a => Array a -> Array (NonEmptyArray a) groupAll = groupAllBy compare --- | Deprecated previous name of `groupAll`. -group' :: forall a. Warn (Text "'group\'' is deprecated, use 'groupAll' instead") => Ord a => Array a -> Array (NonEmptyArray a) -group' = groupAll - -- | Group equal, consecutive elements of an array into arrays, using the -- | specified equivalence relation to determine equality. -- | diff --git a/src/Data/Array/NonEmpty.purs b/src/Data/Array/NonEmpty.purs index 67cca9e..332cd69 100644 --- a/src/Data/Array/NonEmpty.purs +++ b/src/Data/Array/NonEmpty.purs @@ -80,7 +80,6 @@ module Data.Array.NonEmpty , span , group , groupAll - , group' , groupBy , groupAllBy @@ -134,7 +133,6 @@ import Data.Tuple (Tuple(..)) import Data.Unfoldable (class Unfoldable) import Data.Unfoldable1 (class Unfoldable1, unfoldr1) import Partial.Unsafe (unsafePartial) -import Prim.TypeError (class Warn, Text) import Unsafe.Coerce (unsafeCoerce) -- | Internal - adapt an Array transform to NonEmptyArray @@ -424,10 +422,6 @@ group = unsafeAdapt $ A.group groupAll :: forall a. Ord a => NonEmptyArray a -> NonEmptyArray (NonEmptyArray a) groupAll = groupAllBy compare --- | Deprecated previous name of `groupAll`. -group' :: forall a. Warn (Text "'group\'' is deprecated, use 'groupAll' instead") => Ord a => NonEmptyArray a -> NonEmptyArray (NonEmptyArray a) -group' = unsafeAdapt $ A.groupAll - -- | Group equal, consecutive elements of an array into arrays, using the -- | specified equivalence relation to determine equality. -- | diff --git a/src/Data/Array/ST.purs b/src/Data/Array/ST.purs index 2726dd2..2817bee 100644 --- a/src/Data/Array/ST.purs +++ b/src/Data/Array/ST.purs @@ -8,7 +8,6 @@ module Data.Array.ST , run , withArray , new - , empty , peek , poke , modify @@ -34,7 +33,6 @@ import Prelude import Control.Monad.ST as ST import Control.Monad.ST (ST, Region) import Data.Maybe (Maybe(..)) -import Prim.TypeError (class Warn, Text) -- | A reference to a mutable array. -- | @@ -80,9 +78,6 @@ foreign import unsafeThaw :: forall h a. Array a -> ST h (STArray h a) -- | Create a new, empty mutable array. foreign import new :: forall h a. ST h (STArray h a) -empty :: forall h a. Warn (Text "'Data.Array.ST.empty' is deprecated, use 'Data.Array.ST.new' instead") => ST h (STArray h a) -empty = new - -- | Create a mutable copy of an immutable array. foreign import thaw :: forall h a. Array a -> ST h (STArray h a)