packages feed

circular 0.4.0.2 → 0.4.0.3

raw patch · 6 files changed

+58/−52 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -5,9 +5,14 @@ ## Unreleased changes  +## 0.4.0.3++-   Tooling and compilation with GHC 9.2.3.++ ## 0.4.0.2 --   Tooling updtes related to GHC 9.2.1.+-   Tooling updates related to GHC 9.2.1.   ## 0.4.0.1
LICENSE view
@@ -1,4 +1,4 @@-Copyright Dominik Schrempf (c) 2021+Copyright 2021 Dominik Schrempf  All rights reserved. 
bench/Bench.hs view
@@ -1,7 +1,7 @@ -- | -- Module      :  Main -- Description :  Benchmark circular stacks--- Copyright   :  (c) Dominik Schrempf, 2021+-- Copyright   :  2021 Dominik Schrempf -- License     :  GPL-3.0-or-later -- -- Maintainer  :  dominik.schrempf@gmail.com
circular.cabal view
@@ -1,72 +1,73 @@-cabal-version:  3.0-name:           circular-version:        0.4.0.2-synopsis:       Circular fixed-sized mutable vectors-description:    Please see the README at <https://github.com/dschrempf/circular#readme>-category:       Math, Data Structures-homepage:       https://github.com/dschrempf/circular#readme-bug-reports:    https://github.com/dschrempf/circular/issues-author:         Dominik Schrempf-maintainer:     dominik.schrempf@gmail.com-copyright:      Dominik Schrempf (2021)-license:        BSD-3-Clause-license-file:   LICENSE-build-type:     Simple+cabal-version:      3.0+name:               circular+version:            0.4.0.3+synopsis:           Circular fixed-sized mutable vectors+description:+  Please see the README at <https://github.com/dschrempf/circular#readme>++category:           Math, Data Structures+homepage:           https://github.com/dschrempf/circular#readme+bug-reports:        https://github.com/dschrempf/circular/issues+author:             Dominik Schrempf+maintainer:         dominik.schrempf@gmail.com+copyright:          2021 Dominik Schrempf+license:            BSD-3-Clause+license-file:       LICENSE+build-type:         Simple extra-source-files:-    README.md-    ChangeLog.md+  ChangeLog.md+  README.md  source-repository head-  type: git+  type:     git   location: https://github.com/dschrempf/circular  library-  exposed-modules:-      Data.Stack.Circular-  other-modules:-      Paths_circular-  hs-source-dirs: src-  ghc-options: -Wall -Wunused-packages+  exposed-modules:  Data.Stack.Circular+  other-modules:    Paths_circular+  hs-source-dirs:   src+  ghc-options:      -Wall -Wunused-packages   build-depends:-      aeson-    , base >=4.7 && <5+    , aeson+    , base       >=4.7 && <5     , primitive     , vector+   default-language: Haskell2010  test-suite circular-test-  type: exitcode-stdio-1.0-  main-is: Spec.hs+  type:             exitcode-stdio-1.0+  main-is:          Spec.hs   other-modules:-      Data.Stack.CircularSpec-      Paths_circular-  autogen-modules:-      Paths_circular-  hs-source-dirs: test-  ghc-options: -Wall -Wunused-packages+    Data.Stack.CircularSpec+    Paths_circular++  autogen-modules:  Paths_circular+  hs-source-dirs:   test+  ghc-options:      -Wall -Wunused-packages   build-depends:-      QuickCheck     , aeson-    , base >=4.7 && <5+    , base                  >=4.7 && <5     , circular     , hspec     , primitive+    , QuickCheck     , quickcheck-instances     , vector+   default-language: Haskell2010  benchmark circular-bench-  type: exitcode-stdio-1.0-  main-is: Bench.hs-  other-modules:-      Paths_circular-  autogen-modules:-      Paths_circular-  hs-source-dirs: bench-  ghc-options: -Wall -Wunused-packages+  type:             exitcode-stdio-1.0+  main-is:          Bench.hs+  other-modules:    Paths_circular+  autogen-modules:  Paths_circular+  hs-source-dirs:   bench+  ghc-options:      -Wall -Wunused-packages   build-depends:-      base >=4.7 && <5+    , base       >=4.7 && <5     , circular     , criterion     , vector+   default-language: Haskell2010
src/Data/Stack/Circular.hs view
@@ -7,7 +7,7 @@ -- | -- Module      :  Data.Stack.Circular -- Description :  Circular stacks of fixed size--- Copyright   :  (c) 2021 Dominik Schrempf+-- Copyright   :  2021 Dominik Schrempf -- License     :  GPL-3.0-or-later -- -- Maintainer  :  dominik.schrempf@gmail.com@@ -70,7 +70,7 @@ -- O(n). replicate :: (VG.Vector v a, PrimMonad m) => Int -> a -> m (MStack v (PrimState m) a) replicate n x-  | n <= 0 = error "empty: maximum size must be one or larger"+  | n <= 0 = error "replicate: maximum size must be one or larger"   | otherwise = do       v <- VM.replicate n x       return $ MStack v 0@@ -126,8 +126,8 @@ -- O(k). take :: (VG.Vector v a, PrimMonad m) => Int -> MStack v (PrimState m) a -> m (v a) take k (MStack v i)-  | k < 0 = error "toVectorN: negative k"-  | k > n = error "toVectorN: circular stack too small"+  | k < 0 = error "take: negative k"+  | k > n = error "take: circular stack too small"   | k == 0 = return VG.empty   -- We know now that k is in [1, n] and check if all k elements can be taken in   -- one go.
test/Data/Stack/CircularSpec.hs view
@@ -5,7 +5,7 @@ -- | --   Module      :  Data.Stack.CircularSpec --   Description :  Unit tests for Data.Stack.Circular---   Copyright   :  (c) Dominik Schrempf, 2021+--   Copyright   :  2021 Dominik Schrempf --   License     :  GPL-3.0-or-later -- --   Maintainer  :  dominik.schrempf@gmail.com