packages feed

handwriting 0.1.0.2 → 0.1.0.3

raw patch · 3 files changed

+6/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

app/Main.hs view
@@ -39,6 +39,7 @@                                    lineSpacingVariance = Just 0.2,                                    wordSpacingVariance = Just 0.4,                                    width               = Just 800,+                                   color               = Just (0,0,0),                                    randomSeed          = Randomize}   imageByteString <- renderImage creds params "Hello World!" 
handwriting.cabal view
@@ -1,5 +1,5 @@ name:                handwriting-version:             0.1.0.2+version:             0.1.0.3 synopsis:            API Client for the handwriting.io API. description:         Please see README.md homepage:            http://github.com/ismailmustafa/handwriting-haskell#readme
src/Network/Internal/Utilities.hs view
@@ -75,8 +75,10 @@ {-| Convert RGB to Hex. -} toHex :: Color -> String-toHex (r,g,b) = "&handwriting_color=" <> showHex r "" <> showHex g "" -                                      <> showHex b ""+toHex (r,g,b) = "&handwriting_color=" <> pad (showHex r "")+                                      <> pad (showHex g "")+                                      <> pad (showHex b "")+  where pad s | length s == 1 = "0" <> s | otherwise = s  {-| Limit double values to 3 significant figures. -}