overloaded-records v0.4.0.0 Release Notes
Release Date: 2016-04-01 // about 8 years ago-
- ๐ 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