packages feed

yx 0.0.4.2 → 0.0.4.3

raw patch · 2 files changed

+6/−3 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Geometry.YX: YX :: !Int -> !Int -> YX
+ Data.Geometry.YX: YX :: {-# UNPACK #-} !Int -> {-# UNPACK #-} !Int -> YX
- Data.Geometry.YX: [x] :: YX -> !Int
+ Data.Geometry.YX: [x] :: YX -> {-# UNPACK #-} !Int
- Data.Geometry.YX: [y] :: YX -> !Int
+ Data.Geometry.YX: [y] :: YX -> {-# UNPACK #-} !Int

Files

src/Data/Geometry/YX.hs view
@@ -39,8 +39,11 @@ import Data.List (groupBy)  -- | A 2D coordinate.----data YX = YX { y :: !Int, x :: !Int } deriving (Eq, Ord, Show)+data YX+  = YX+    { y :: {-# UNPACK #-} !Int -- ^ Y-axis coordinate.+    , x :: {-# UNPACK #-} !Int -- ^ X-axis coordinate.+    } deriving (Eq, Ord, Show)  lift1 :: (Int -> Int) -> YX -> YX lift1 f (YX y1 x1) = YX (f y1) (f x1)
yx.cabal view
@@ -1,5 +1,5 @@ name:                yx-version:             0.0.4.2+version:             0.0.4.3 synopsis:            Row-major coordinates description:         A minimal library for handling 2D coordinates. homepage:            https://github.com/mtth/yx