packages feed

agreeing 0.1.0.0 → 0.2.0.0

raw patch · 2 files changed

+11/−7 lines, 2 filesdep ~hspecPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hspec

API changes (from Hackage documentation)

Files

agreeing.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.35.0.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack  name:           agreeing-version:        0.1.0.0+version:        0.2.0.0 synopsis:       Idiomatic data structure for agreement description:    Please see the README on GitHub at <https://github.com/jcranch/agreeing#readme> category:       Data@@ -49,5 +49,5 @@   build-depends:       agreeing     , base >=4.7 && <5-    , hspec >=2.7 && <2.11+    , hspec >=2.7 && <2.12   default-language: Haskell2010
src/Data/Agreement.hs view
@@ -1,8 +1,9 @@ -- | A simple data structure helping us ask questions of the following--- sort: "does all this data have the same <BLANK> and if so what is+-- sort: "does all this data have the same /BLANK/ and if so what is -- it?" -- -- For example:+-- -- > doTheseHaveTheSameLength :: [String] -> String -- > doTheseHaveTheSameLength l = case foldMap (Somebody . length) of -- >   Somebody n -> "They all have length " <> show n@@ -17,9 +18,12 @@                        stimesIdempotentMonoid)  -- | We have the following constructors:--- * `Somebody` is a consistent choice of an element.--- * `Nobody` is an inconsistent choice.--- * `Anybody` is a failure to make any choice.+--+--   * `Somebody` is a consistent choice of an element.+--+--   * `Nobody` is an inconsistent choice.+--+--   * `Anybody` is a failure to make any choice. data Agreement a = Anybody | Somebody a | Nobody  -- | This picks out consistent choices as `Just`.