alist 0.1.0.6 → 0.1.1.6
raw patch · 3 files changed
+20/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.AList.NonEmpty: AListNonEmptyAppend :: AListNonEmpty a -> AListNonEmpty a -> AListNonEmpty a
+ Data.AList.NonEmpty: AListNonEmptySingle :: a -> AListNonEmpty a
+ Data.AList.NonEmpty: append :: () => AListNonEmpty a -> AListNonEmpty a -> AListNonEmpty a
+ Data.AList.NonEmpty: data AListNonEmpty a
+ Data.AList.NonEmpty: instance GHC.Base.Semigroup (Data.AList.NonEmpty.AListNonEmpty a)
+ Data.AList.NonEmpty: instance GHC.Read.Read a => GHC.Read.Read (Data.AList.NonEmpty.AListNonEmpty a)
+ Data.AList.NonEmpty: instance GHC.Show.Show a => GHC.Show.Show (Data.AList.NonEmpty.AListNonEmpty a)
Files
- ChangeLog.md +4/−0
- Data/AList/NonEmpty.hs +12/−0
- alist.cabal +4/−3
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for alist +## 0.1.1.6 -- 2019-04-06++* Added nonempty+ ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world.
+ Data/AList/NonEmpty.hs view
@@ -0,0 +1,12 @@+module Data.AList.NonEmpty where +import Prelude hiding (sum)+import Data.Semigroup++data AListNonEmpty a = AListNonEmptyAppend (AListNonEmpty a) (AListNonEmpty a)+ | AListNonEmptySingle a+ deriving (Read,Show)++append = AListNonEmptyAppend++instance Semigroup (AListNonEmpty a) where+ (<>) = append
alist.cabal view
@@ -10,7 +10,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.6+version: 0.1.1.6 -- A short (one-line) description of the package. synopsis: lists with O(1) append@@ -19,7 +19,7 @@ -- description: -- URL for the project homepage or repository.-homepage: xy30.com+homepage: http://xy30.com -- The license under which the package is released. license: BSD3@@ -51,7 +51,8 @@ library -- Modules exported by the library.- exposed-modules: Data.AList+ exposed-modules: Data.AList + ,Data.AList.NonEmpty -- Modules included in this library but not exported. -- other-modules: