parameterized-utils v2.0.1 Release Notes
Release Date: 2019-11-06 // over 4 years ago-
- Documentation updates
- Dependency constraint updates: constraints, lens, th-abstraction, hashable, hashtables, and vector.
- Now supports building under GHC 8.8.1.
- Added monadic folds and more traversals:
- lazy folds:
foldlMF
,foldrMF
,foldlMFC
,foldrMFC
- strict folds:
foldlMF'
,foldrMF'
,foldlMFC'
,foldrMFC'
forF
,forF_
forFC
,forFC_
lengthF
- lazy folds:
- Added monadic folds, ascending or descending list conversions to
Parameterized.Map
:- Added monadic folds:
foldlMWithKey
,foldrMWithKey
- Added ascending or descending list conversions:
toAscList
(equivalent to existingtoList
) andtoDescList
. - Added
findWithDefault
to lookup a key or return a default value. - Added
traverseMaybeWithKey
. - Fixes traverse to do an in-order rather than a pre-order traversal.
- Added monadic folds:
- Added the
Data.Parameterized.All
module for universal quantification/parametricity over a type variable. - Additions to
Data.Parameterized.Context
:- Added
IndexView
type andviewIndex
functions. - Added
addDiff
function to explicitly describe the (flipped) binary operator for theDiff
instance of theCategory
class fromControl.Category
. - Added
traverseWithIndex_
- Added
- Added
Data.Parameterized.DataKind
providing thePairRepr
type with associatedfst
andsnd
functions. - Added
TypeAp
toData.Parameterized.Classes
- Added
runSTNonceGenerator
toData.Parameterized.Nonce
for a global ST generator. - Added a
Hashable
instance for listIndex l x
types. - Changes in GADT TH code generator:
- Added
structuralHashWithSalt
to - Fixed off by one bug in output
- Fixed generation and constructor generation to use constructor type arguments, not type parameters.
- Added
- The
Some
type is now an instance ofFunctorF
,FoldableF
, andTraversableF
. - Adjusted
structuralShowsPrec
precedence to match GHC derivedShow
instances. - The
Data.Parameterized.Nonce.Unsafe
module is now deprecated: clients should switch toData.Parameterized.Nonce
.