relude v0.7.0.0 Release Notes
Release Date: 2020-05-14 // almost 4 years ago-
- #253: Support GHC-8.10. Upgrade GHC-8.8 to 8.8.3.
- 📚 Significant documentation improvements:
- Add high-level description to each reexported module.
- Add String Conversion Table.
- Add
NonEmpty
lists functions tables. - Add
@since
annotations. - Improve README.
- Inline some external reexports into explicit lists of exports.
- Rewrite top-level
cabal
description.
- #234:
Reexport
scanl1
,scanr1
,scanl'
fromData.List
. - #256:
Make
cycle
total function. - #233:
Add
etaReaderT
toRelude.Monad.Trans
to help with performance. - #294:
Add
atomicModifyIORef_
andatomicModifyIORef'_
. - #293:
Add
memptyIfFalse
andmemptyIfTrue
functions. - Reexport
NonEmpty
functions fromRelude.List.NonEmpty
instead ofRelude.List.Reexport
. - #239:
Reexport more STM functions that work with
TMVar
fromRelude.Lifted.Concurrent
. - #227:
Create
Relude.Extra
module - #228:
Add
universeNonEmpty
function. - #249:
Breaking change: Fix infix of the
Relude.Extra.Lens
(^.)
operator. Change it toinfixl 8
. - Reexport partial
read
fromRelude.Unsafe
for consistency. - #244:
Remove deprecated functions:
prec
,dupe
andmapBoth
.
Migration rules: +
prec
: useprev
instead +dupe
: usedup
instead +mapBoth
: usebimapBoth
instead- #246:
Deprecate
Relude.Extra.Validation
in favour ofvalidation-selective
Migration rules: If you use
Relude.Extra.Validation
in you project you need to:1. Add `validation-selective` into the `build-depends` section of your `.cabal` file. 2. Change imports of `Relude.Extra.Validation` to `Validation`: ```haskell -- Was: import Relude.Extra.Validation (Validation (..), ..) -- Became: import Validation (Validation (..), ..) ```
- #196:
Deprecate
mapToFst
andmapToSnd
. IntroducetoFst
andtoSnd
inRelude.Extra.Tuple
as shorter aliases formapToFst
. ImplementfmapToFst
andfmapToSnd
. Add more HLint rules forRelude.Extra.Tuple
functions.
Migration rules:
- Replace
mapToFst
withtoFst
- Replace
mapToSnd
withtoSnd
- You can now use
fmapToFst
andfmapToSnd
instead of[f]map (mapToFst f)
and[f]map (mapToSnd f)
- #286:
Breaking change:
readEither
is not polymorphic over the first argument anymore. Now it takesString
.
- #286:
Breaking change:
Migration rules: Use one of the conversion function from the
Relude.String.Conversion
module to covert your old input value intoString
.For example, if you had
readEither @Text @Int myText
Now it should become:
readEither @Int (toString myText)