All Versions
6
Latest Version
Avg Release Cycle
34 days
Latest Release
2954 days ago
Changelog History
Changelog History
-
v0.4.2.0 Changes
August 17, 2016Rec
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)
-
v0.4.1.0 Changes
April 03, 2016- 🆕 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
-
v0.4.0.0 Changes
April 01, 2016- 📇 Renamed
SetField
type class toModifyField
, it now contains following methods (breaking change):modifyField :: Proxy# l -> (a -> b) -> s -> t
setField :: Proxy# l -> s -> b -> t
fieldLens :: Functor f => Proxy# l -> (a -> f b) -> s -> f t
- Instances for tuples (i.e.
(a, b)
,(a, b, c)
, ...) and lists (i.e.[a]
). (new) - 🚚 Definitions from
Data.OverloadedRecords.TH
were moved toData.OverloadedRecords.TH.Internal
, so that API can be split in to stable and unstable (internal) API. (change) - Aliases
HasField'
andModifyField'
that enforces = t
anda = b
. This is similar to definitions likeLens'
. Simplified versions of methods and functions are included using the same naming convention. (new) Setter
andSetter'
changed to type aliases forModifier
type. (breaking change)- Introducing
Setting
type alias forModifier
along withsetting
, which is an alternative toset
operation. (new)setting :: Setting a s t b -> Proxy a -> b -> s -> t
- 🔄 Changed order of arguments of functions
set
andset'
(breaking change):set :: Setter s t b -> b -> s -> t
set' :: Setter' s a -> a -> s -> s
- Introduced type family
R
that can be used to define more compact type signatures when mentioning multiple record fields in it. (new) - Uploaded to [Hackage][]: http://hackage.haskell.org/package/overloaded-records-0.4.0.0
- 📇 Renamed
-
v0.3.0.0 Changes
March 02, 2016- 🛠 Fixed defaultMakeFieldName, which actually behaved correctly only in very few cases. (bug fix)
- Added missing
HAVE_OVERLOADED_LABELS
macro, that actually allows us to use GHC'sIsLabel
on GHC >8. (bug fix) - 🔄 Exposing previously hidden
FromArrow
andIsFieldAccessor
. (change) - 🆕 Few simple unit tests. (new)
- Uploaded to [Hackage][]: http://hackage.haskell.org/package/overloaded-records-0.3.0.0
-
v0.2.0.0 Changes
March 01, 2016- Function
overloadedRecords
renamed tooverloadedRecord
. There is also newoverloadedRecords
function, that behaves asoverloadedRecord
, but for multiple types at once. (breaking change) - It is now possible to customize overloadedRecord* family of functions with custom getter and setter implementation. (new)
- 🔄 Types and functions follow, hopefully, better naming conventions. (change)
- More low-level template haskell functions for those cases when it is necessary to build your own higher-level ones, or when you need much more control over the result. (new)
- Uploaded to [Hackage][]: http://hackage.haskell.org/package/overloaded-records-0.2.0.0
- Function
-
v0.1.0.0 Changes
February 28, 2016- 🚀 First public release.
- Uploaded to Hackage: http://hackage.haskell.org/package/overloaded-records-0.1.0.0