packages feed

slist 0.1.0.0 → 0.1.1.0

raw patch · 6 files changed

+28/−29 lines, 6 filesdep −slistdep ~basePVP ok

version bump matches the API change (PVP)

Dependencies removed: slist

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -3,6 +3,13 @@ `slist` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 0.1.1.0 — Apr 18, 2020++* Fix `mconcat` for `Slist` `Monoid` instance.+* [#25](https://github.com/vrom911/slist/issues/25):+  Support GHC-8.10.+* Update to GHC-8.8.3 from GHC-8.8.1.+ ## 0.1.0.0  * [#13](https://github.com/vrom911/slist/issues/13):@@ -17,7 +24,7 @@   (by @waynee95) * Make `dropWhile` work better on infinite lists.   (by @chshersh)-* Support GHC-8.6.5 instead os GHC-8.6.3.+* Support GHC-8.6.5 instead of GHC-8.6.3. * [#6](https://github.com/vrom911/slist/issues/6):   Build with Stack. 
README.md view
@@ -1,5 +1,6 @@ # slist +[![GitHub CI](https://github.com/vrom911/slist/workflows/CI/badge.svg)](https://github.com/vrom911/slist/actions) [![Build status](https://img.shields.io/travis/vrom911/slist.svg?logo=travis)](https://travis-ci.org/vrom911/slist) [![Hackage](https://img.shields.io/hackage/v/slist.svg?logo=haskell)](https://hackage.haskell.org/package/slist) [![Stackage LTS](http://stackage.org/package/slist/badge/lts)](http://stackage.org/lts/package/slist)
slist.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 name:                slist-version:             0.1.0.0+version:             0.1.1.0 synopsis:            Sized list description:         This package implements @Slist@ data structure that stores the size                      of the list along with the list itself.@@ -10,7 +10,7 @@ license-file:        LICENSE author:              Veronika Romashkina maintainer:          vrom911@gmail.com-copyright:           2019 Veronika Romashkina+copyright:           2019-2020 Veronika Romashkina category:            Data Structures, List build-type:          Simple extra-doc-files:     README.md@@ -18,14 +18,15 @@ tested-with:         GHC == 8.2.2                    , GHC == 8.4.4                    , GHC == 8.6.5-                   , GHC == 8.8.1+                   , GHC == 8.8.3+                   , GHC == 8.10.1  source-repository head   type:                git   location:            https://github.com/vrom911/slist.git  common common-options-  build-depends:       base >= 4.10.1.0 && < 4.14+  build-depends:       base >= 4.10.1.0 && < 4.15    ghc-options:         -Wall                        -Wincomplete-uni-patterns@@ -37,6 +38,8 @@   if impl(ghc >= 8.8.1)     ghc-options:       -Wmissing-deriving-strategies                        -Werror=missing-deriving-strategies+  if impl(ghc >= 8.10.1)+    ghc-options:       -Wunused-packages    default-extensions:  ConstraintKinds                        DeriveGeneric@@ -61,25 +64,11 @@   exposed-modules:     Slist                          Slist.Size -test-suite slist-test-  import:              common-options-  type:                exitcode-stdio-1.0-  hs-source-dirs:      test-  main-is:             Spec.hs--  build-depends:       slist--  ghc-options:         -threaded-                       -rtsopts-                       -with-rtsopts=-N- test-suite slist-doctest   import:              common-options   type:                exitcode-stdio-1.0   hs-source-dirs:      test   main-is:             Doctest.hs-   build-depends:       doctest                      , Glob-   ghc-options:         -threaded
src/Slist.hs view
@@ -6,7 +6,7 @@ {- HLINT ignore "Use mconcat" -}  {- |-Copyright:  (c) 2019 vrom911+Copyright:  (c) 2019-2020 Veronika Romashkina License:    MPL-2.0 Maintainer: Veronika Romashkina <vrom911@gmail.com> @@ -266,7 +266,7 @@       where         -- foldr :: (a -> ([a], Size) -> ([a], Size)) -> ([a], Size) -> [Slist a] -> ([a], Size)         f :: Slist a -> ([a], Size) -> ([a], Size)-        f (Slist l s) (xL, !xS) = (xL ++ l, s + xS)+        f (Slist l s) (xL, !xS) = (l ++ xL, s + xS)     {-# INLINE mconcat #-}  instance Functor Slist where
src/Slist/Size.hs view
@@ -1,9 +1,15 @@--- | Lists size representation+{- |+Copyright:  (c) 2019-2020 Veronika Romashkina+License:    MPL-2.0+Maintainer: Veronika Romashkina <vrom911@gmail.com> +Lists size representation.+-}+ module Slist.Size-       ( Size (..)-       , sizes-       ) where+    ( Size (..)+    , sizes+    ) where   {- | Data type that represents lists size/lengths.
− test/Spec.hs
@@ -1,4 +0,0 @@-module Main (main) where--main :: IO ()-main = putStrLn ("Test suite not yet implemented" :: String)