NonEmptyList 0.0.3 → 0.0.4
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.List.NonEmpty: fromNonEmpty :: NonEmpty a -> [a]
Files
- Data/List/NonEmpty.hs +2/−1
- NonEmptyList.cabal +1/−1
Data/List/NonEmpty.hs view
@@ -6,7 +6,6 @@ -- * Accessors neHead, neTail,- fromNonEmpty, -- * Constructors nonEmpty, (|:),@@ -83,6 +82,8 @@ -- | Conversion to ordinary list (like Data.Foldable.toList, but O(1)). fromNonEmpty :: NonEmpty a -> [a] fromNonEmpty (NonEmpty x y) = x : y++{-# RULES "toList/fromNonEmpty" toList = fromNonEmpty #-} -- | Constructs a non-empty list with the given head and tail. nonEmpty :: a -- ^ The head.
NonEmptyList.cabal view
@@ -1,5 +1,5 @@ Name: NonEmptyList-Version: 0.0.3+Version: 0.0.4 License: BSD3 License-File: LICENSE Synopsis: A list with a length of at least one.