packages feed

universum 1.8.1 → 1.8.1.1

raw patch · 4 files changed

+19/−11 lines, 4 filesdep ~textPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: text

API changes (from Hackage documentation)

- Universum.Base: data Nat
- Universum.Base: gcdInt' :: Int -> Int -> Int
- Universum.Base: gcdWord' :: Word -> Word -> Word
- Universum.Container: type family Val t :: Type;
- Universum.Container.Class: type family OneItem x;
+ Universum.Base: Base10 :: FractionalExponentBase
+ Universum.Base: Base2 :: FractionalExponentBase
+ Universum.Base: data FractionalExponentBase
+ Universum.Base: mkRationalBase10 :: Rational -> Integer -> Rational
+ Universum.Base: mkRationalBase2 :: Rational -> Integer -> Rational
+ Universum.Base: mkRationalWithExponentBase :: Rational -> Integer -> FractionalExponentBase -> Rational
+ Universum.Base: type Nat = Natural
+ Universum.Container: type Key t :: Type;
+ Universum.Container: type OneItem x;
+ Universum.Container: type Val t :: Type;
+ Universum.Container.Class: type Key t :: Type;
+ Universum.Container.Class: type OneItem x;
+ Universum.Container.Class: type Val t :: Type;
- Universum.Base: class Foldable (t :: Type -> Type)
+ Universum.Base: class Foldable (t :: TYPE LiftedRep -> Type)
- Universum.Base: infixl 6 +
+ Universum.Base: infixl 6 -
- Universum.Base: infixl 7 `quot`
+ Universum.Base: infixl 7 `div`
- Universum.Base: mapAccumL :: Traversable t => (a -> b -> (a, c)) -> a -> t b -> (a, t c)
+ Universum.Base: mapAccumL :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)
- Universum.Base: mapAccumR :: Traversable t => (a -> b -> (a, c)) -> a -> t b -> (a, t c)
+ Universum.Base: mapAccumR :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)
- Universum.Base: seq :: forall (r :: RuntimeRep) a (b :: TYPE r). a -> b -> b
+ Universum.Base: seq :: forall {r :: RuntimeRep} a (b :: TYPE r). a -> b -> b
- Universum.Base: type Type = Type
+ Universum.Base: type Type = TYPE LiftedRep
- Universum.Base: type family CmpNat (a :: Nat) (b :: Nat) :: Ordering
+ Universum.Base: type family CmpNat (a :: Natural) (b :: Natural) :: Ordering
- Universum.Functor.Reexport: infixl 4 <$>
+ Universum.Functor.Reexport: infixl 4 $>

Files

CHANGES.md view
@@ -1,5 +1,14 @@-Unreleased+1.8.1.1+=======++* [#282](https://github.com/serokell/universum/pull/282):+  Bump version bound on `text` to `2.0.1`.++1.8.1 =====++* [#271](https://github.com/serokell/universum/pull/271):+  Add compatibility with tasty-hedgehog 1.2.0.0  1.8.0 =====
benchmark/Main.hs view
@@ -180,11 +180,8 @@ bgroupTextConversion :: Benchmark bgroupTextConversion =   bgroup "text conversions"-    [ let str = replicate 100000 'a'-          countLength x = length (toString x)-      in bench "toString . toText" $ whnf (countLength . toText) str--    , let txt = T.replicate 100000 (T.singleton 'a')-          countLength x = length (toText x)-      in bench "toText . toString" $ whnf (countLength . toString) txt+    [ -- With @toText . toString -> id@ rewrite rules we expect ~10ns+      -- Without the rules: >10ms+      let txt = T.replicate 10000000 (T.singleton 'a')+      in bench "toText . toString" $ whnf (toText . toString) txt     ]
src/Universum/String/Conversion.hs view
@@ -194,6 +194,8 @@   * unstreamList   * safe   * any RULES definition (if some is added, this counts)+Also check the @text conversions@ benchmark, that the numbers with and without+the rules are still the expected ones If none of mentioned have changed, then it is safe to assume that everything is still fine. @@ -246,7 +248,7 @@ There's a comment on top of it to explain this:  ```--- UTF-16 surrogate code points are not included in the set of Unicode+-- Unicode 'Data.Char.Surrogate' code points are not included in the set of Unicode -- scalar values, but are unfortunately admitted as valid 'Char' -- values by Haskell.  They cannot be represented in a 'Text'.  This -- function remaps those code points to the Unicode replacement
universum.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                universum-version:             1.8.1+version:             1.8.1.1 synopsis:            Custom prelude used in Serokell description:         See README.md file for more details. homepage:            https://github.com/serokell/universum@@ -105,7 +105,7 @@                      , stm                      -- Make sure that "toString-toText-rewritting" note                      -- is still valid when bumping this constraint.-                     , text >= 1.0.0.0 && <= 1.2.5.0+                     , text >= 1.0.0.0 && <= 2.0.1                      , transformers                      , unordered-containers                      , utf8-string