relude 1.0.0.0 → 1.0.0.1
raw patch · 5 files changed
+66/−3 lines, 5 files
Files
- CHANGELOG.md +4/−0
- relude.cabal +1/−1
- src/Relude/Enum.hs +1/−1
- src/Relude/Extra/Foldable1.hs +29/−0
- src/Relude/Extra/Lens.hs +31/−1
CHANGELOG.md view
@@ -3,6 +3,10 @@ `relude` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 1.0.0.1 — Mar 15, 2021++* Minor documentation changes.+ ## 1.0.0.0 — Mar 12, 2021 * [#353](https://github.com/kowainik/relude/issues/353):
relude.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: relude-version: 1.0.0.0+version: 1.0.0.1 synopsis: Safe, performant, user-friendly and lightweight Haskell Standard Library description: @__relude__@ is an alternative prelude library. If you find the default
src/Relude/Enum.hs view
@@ -8,7 +8,7 @@ Reexports 'Enum' related typeclasses and functions. Also introduces a few useful helpers to work with Enums. -**Note:** 'universe', 'universeNonEmpty' and 'inverseMap' were previously in the+__Note:__ 'universe', 'universeNonEmpty' and 'inverseMap' were previously in the extra modules, but due to their benefit in different use cases. If you imported @Relude.Extra.Enum@ module, you can remove it now, as these functions are reexported in the main "Relude" module.
src/Relude/Extra/Foldable1.hs view
@@ -407,3 +407,32 @@ average1 :: forall a f . (Foldable1 f, Fractional a) => f a -> a average1 = uncurry (/) . foldl' (\(!total, !count) x -> (total + x, count + 1)) (0,0) {-# INLINE average1 #-}++{-+Copyright 2011-2015 Edward Kmett++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions+are met:++1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+POSSIBILITY OF SUCH DAMAGE.+-}
src/Relude/Extra/Lens.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE Safe #-} {- |-Copyright: (c) 2013-2016 Edward Kmett+Copyright: (c) 2012-2016 Edward Kmett (c) 2019-2021 Kowainik SPDX-License-Identifier: MIT Maintainer: Kowainik <xrom.xkov@gmail.com>@@ -244,3 +244,33 @@ (%~) :: Lens' s a -> (a -> a) -> s -> s (%~) = over {-# INLINE (%~) #-}+++{-+Copyright 2012-2016 Edward Kmett++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions+are met:++1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+POSSIBILITY OF SUCH DAMAGE.+-}