Changelog for containers-0.5.7.1
Changelog for containers package
0.5.7.1 Dec 2015
-
Planned to bundle with GHC 8.0.1.
-
Add
IsStringinstance toData.Sequence. -
Define
Semigroupinstances for ``Data.Map,Data.Set,Data.IntMap,Data.IntSetandData.Sequence`.
0.5.6.2 Dec 2014
-
Bundled with GHC 7.10.1.
-
Add role annotations for
Data.MapandData.Set. -
Add
IsListinstances forData.Map,Data.Set,Data.IntMapandData.IntSet. -
Several performance improvements for
Data.Sequence. -
Add
Data.Sequence.fromFunctionandData.Sequence.fromArray.
0.5.4.0 Jan 2014
-
Bundled with GHC 7.8.1.
-
The
Data.Map.fromListandData.Set.fromListnow use linear-time algorithm if the input is sorted, without need to callfromDistinctAscList. -
Implement indexing operations (
lookupIndex,findIndex,elemAt,deletaAt) forData.Settoo. -
Add
ApplicativeandAlternativeinstances forData.Sequence. -
Add
foldMapWithKeytoData.MapandData.IntMap. -
Implement poly-kinded
Typeable. -
Add
Functorinstance forData.Graph.SCC. -
Add
Data.Map.splitRootandData.Set.splitRoot.
0.5.0.0 May 2012
-
Bundled with GHC 7.6.1.
-
Major improvements since last release:
- a clearer distinction between value-lazy and value-strict containers,
- performance improvements across the board,
- a big internal clean-up, and
- new functions for e.g. merging, updating, and searching containers.
-
While the old
Data.MapandData.IntMapmodules will continue to exist for the foreseeable future, we've abandoned the practice of having the strict and lazy versions of each function distinguished by an apostrophe. The distinction is instead made at the module level, by introducing four new modules:- Data.Map.Strict
- Data.Map.Lazy
- Data.IntMap.Strict
- Data.IntMap.Lazy
This split has three benefits:
- It makes the choice between value-strict and value-lazy containers more declarative; you pick once at import time, instead of having to remember to use the strict or lazy versions of a function every time you modify the container.
- It alleviates a common source of performance issues, by forcing the user to think about the strictness properties upfront. For example, using insertWith instead of insertWith' is a common source of containers-related performance bugs.
- There are fewer functions per module, making it easier to get an overview of each module.
-
Note that the types used in the strict and lazy APIs are the same, so you can still use the same container in a "mixed" manner, if needed.
-
The
Data.IntSetrepresentation changed to store small sets using bits in anWord. Larger sets are stored as a collection of such dense small sets, connected together by a prefix trie.
0.4.2.1 Feb 2012
-
Bundled with GHC 7.4.1.
-
Data.Map now exportsfoldr,foldr',foldlandfoldl'`. -
Data.Set now exportsfoldr,foldr',foldlandfoldl'`. -
Data.IntMap now exportsfoldr,foldr',foldl,foldl',foldrWithKey,foldrWithKey',foldlWithKeyandfoldlWithKey'`. -
Data.IntSet now exportsfoldr,foldr',foldlandfoldl'`. -
Data.Map.foldWithKeyis no longer deprecated, although it is expected to be deprecated again in the future. -
There are now
NFDatainstance forData.Map.Map,Data.Set.Set,Data.IntMap.IntMap,Data.IntSet.IntSetandData.Tree.Tree.
0.4.1.0 Aug 2011
-
Bundled with GHC 7.2.1.
-
Data.Mapnow exports new functionsfoldrWithKey'andfoldlWithKey', which are strict variants offoldrWithKeyandfoldlWithKeyrespectively. -
Data.IntMapnow exports new functionsinsertWith'andinsertWithKey', which are strict variants ofinsertWithandinsertWithKeyrespectively.
0.4.0.0 Nov 2010
-
Bundled with GHC 7.0.1.
-
Strictness is now more consistent, with containers being strict in their elements even in singleton cases.
-
There is a new function
insertLookupWithKey'inData.Map. -
The
foldWithKeyfunction inData.Maphas been deprecated in favour offoldrWithKey.
0.3.0.0 Dec 2009
-
Bundled with GHC 6.12.1.
-
mapAccumRWithKeyhas been added toData.IntMap. -
A
Traversableinstance has been added toData.IntMap.IntMap. -
The types of
Data.IntMap.intersectionWithandData.IntMap.intersectionWithKeyhave been changed fromintersectionWith :: (a -> b -> a) -> IntMap a -> IntMap b -> IntMap aintersectionWithKey :: (Key -> a -> b -> a) -> IntMap a -> IntMap b -> IntMap atointersectionWith :: (a -> b -> c) -> IntMap a -> IntMap b -> IntMap cintersectionWithKey :: (Key -> a -> b -> c) -> IntMap a -> IntMap b -> IntMap c -
The types of
Data.IntMap.findMinandData.IntMap.findMaxhave been changed fromfindMin :: IntMap a -> afindMax :: IntMap a -> atofindMin :: IntMap a -> (Int,a)findMax :: IntMap a -> (Int,a) -
Data.Mapnow exportsmapAccumRWithKey,foldrWithKey,foldlWithKeyandtoDescList. -
Data.Sequencenow exportsreplicate,replicateA,replicateM,iterateN,unfoldr,unfoldl,scanl,scanl1,scanr,scanr1,tails,inits,takeWhileL,takeWhileR,dropWhileL,dropWhileR,spanl,spanr,breakl,breakr,partition,filter,sort,sortBy,unstableSort,unstableSortBy,elemIndexL,elemIndicesL,elemIndexR,elemIndicesR,findIndexL,findIndicesL,findIndexR,findIndicesR,foldlWithIndex,foldrWithIndex,mapWithIndex,zip,zipWith,zip3,zipWith3,zip4andzipWith4.
0.2.0.0 Nov 2008
-
Bundled with GHC 6.10.1.
-
Various result type now use
Mayberather than allowing anyMonad.
0.1.0.0 Nov 2007
-
Bundled with GHC 6.8.1.
-
Initial split off from GHC base.