packages feed

drawille 0.1.0.5 → 0.1.0.6

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~QuickCheckdep ~containersdep ~hspecPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck, containers, hspec, terminal-size

API changes (from Hackage documentation)

Files

drawille.cabal view
@@ -1,5 +1,5 @@ Name:                   drawille-Version:                0.1.0.5+Version:                0.1.0.6 Category:               System Author:                 Pedro Yamada <tacla.yamada@gmail.com> Maintainer:             Pedro Yamada <tacla.yamada@gmail.com>@@ -50,9 +50,9 @@   Main-Is:              Image2Term.hs   if flag(examples)     Build-Depends:        base >=4 && <5-                        , containers >=0.5 && <0.6+                        , containers >=0.5                         , friday >=0.1 && <0.2-                        , terminal-size >=0.2 && <1+                        , terminal-size >=0.2                         , vector     Buildable: True   else@@ -67,8 +67,8 @@   Main-Is:              Spec.hs   if !flag(no-tests)     Build-Depends:        base >=4 && <5-                        , hspec >=1.11 && <1.12-                        , QuickCheck >=2.6 && <2.7+                        , hspec >=1.11 && <2.3+                        , QuickCheck >=2.6 && <3                         , containers >=0.5 && <0.6     Buildable: True   else
examples/Image2Term.hs view
@@ -122,13 +122,12 @@ -- | -- Gets a canvas coordinate given a canvas' width and a index to the flat -- vector representation of an image's pixel matrix.-{-# INLINEABLE coord #-} coord :: Int -> Int -> (Int, Int) coord w i = (i `rem` w, w - i `div` w)+{-# INLINEABLE coord #-}  -- | -- Accumulates pixels into a canvas.-{-# INLINEABLE accCanvas #-} accCanvas :: Int -> Int -> Bool -> Int -> GreyPixel -> D.Canvas -> D.Canvas accCanvas threshold winW invert idx pix m =     let withinThreshold = pix < fromIntegral threshold@@ -136,6 +135,7 @@       in if shouldSet              then D.set m (coord winW idx)              else m+{-# INLINEABLE accCanvas #-}  -- | -- Resizes an image to fit a window.