packages feed

diagrams-lib 1.0.0.1 → 1.0.1

raw patch · 3 files changed

+22/−3 lines, 3 filesdep +ghc-primdep +hashable

Dependencies added: ghc-prim, hashable

Files

CHANGES.markdown view
@@ -1,3 +1,14 @@+1.0.1 (26 January 2014)+-----------------------++    - Depend on `hashable` package, and add `Hashable` instance for+      `SizeSpec2D`.++      Technically, the PVP specifies that adding a new instance+      requires a major version bump.  However, I highly doubt anyone+      was making their own orphan `Hashable` instances before.  Feel+      free to yell at Brent if this breaks your build.+ 1.0.0.1 (28 November 2013) -------------------------- 
diagrams-lib.cabal view
@@ -1,5 +1,5 @@ Name:                diagrams-lib-Version:             1.0.0.1+Version:             1.0.1 Synopsis:            Embedded domain-specific language for declarative graphics Description:         Diagrams is a flexible, extensible EDSL for creating                      graphics of many types.  Graphics can be created@@ -102,6 +102,9 @@                        tagged >= 0.7,                        optparse-applicative >= 0.7 && < 0.8,                        filepath,-                       safe >= 0.2 && < 0.4+                       safe >= 0.2 && < 0.4,+                       hashable >= 1.1 && < 1.3+  if impl(ghc < 7.6)+    Build-depends: ghc-prim   Hs-source-dirs:      src   default-language:    Haskell2010
src/Diagrams/TwoD/Size.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE DeriveGeneric    #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies     #-} @@ -35,6 +36,8 @@  import           Control.Applicative  (liftA2, (<$>)) import           Control.Arrow        ((&&&), (***))+import           Data.Hashable        (Hashable)+import           GHC.Generics         (Generic)  ------------------------------------------------------------ -- Computing diagram sizes@@ -93,7 +96,9 @@                 | Absolute            -- ^ Absolute size: use whatever                                       -- size an object already has;                                       -- do not rescale.-  deriving (Eq, Ord, Show)+  deriving (Eq, Ord, Show, Generic)++instance Hashable SizeSpec2D  -- | Create a size specification from a possibly-specified width and --   height.