overloaded-records v0.4.2.0 Release Notes
Release Date: 2016-08-17 // about 8 years ago-
Rec
instances forEq1
,Ord1
,Show1
,Eq
,Ord
, andShow
. Instances forEq1
,Ord1
andShow1
are available only with transformers ==0.5.* or with base >=4.9 (i.e. GHC >=8). (new)- Introducing
WrappedLensLike
data type along with a simplified typeWrappedLensLike'
. For each of these we have correspondinglns
andlns'
operation for unpackingWrappedLensLike
. (new)lns :: WrappedLensLike f s t a b -> (a -> f b) -> s -> f t
lns' :: WrappedLensLike' f s a -> (a -> f a) -> s -> f s
- ๐ Allowing fields\/accessors to occur in multiple data constructors by not creating duplicit instances, thanks to Andy Morris. See pull request #2. (change)
- Data type
Label (l :: Symbol)
that can be used to pass label value around. (new) - Instances for
fst
,snd
,thd
andcurry
fields for 11-tuples, 12-tuples up to 15-tuples. (new) - ๐ Instances for
head
andtail
fields forNonEmpty
list. (new) - Instances for
HasField
andModifyField
Rec context r
wherer
is monomorphic. This is just a poor man's instance, since its usability is very limited, but helpful in those special cases. Hopefully we will be able to find a way how to define overloaded records machinery forRec context r
in general. (new)
Previous changes from v0.4.1.0
-
- ๐ Introducing
Getter
newtype along withget
function. (new)get :: Getter s a -> s -> a
- Introducing
Rec
data type that allows passing polymorphic record along with its instances as a normal value. (new) - ๐ Corrections and updates in documentation (change)
- Uploaded to [Hackage][]: http://hackage.haskell.org/package/overloaded-records-0.4.1.0
- ๐ Introducing