handwriting 0.1.0.1 → 0.1.0.2
raw patch · 5 files changed
+12/−11 lines, 5 filesnew-component:exe:handwritingPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Network.Internal.Model: instance Data.Aeson.Types.Class.ToJSON Network.Internal.Model.Handwriting
Files
- app/Main.hs +3/−3
- handwriting.cabal +2/−2
- src/Network/Handwriting.hs +1/−1
- src/Network/Internal/Model.hs +5/−4
- src/Network/Internal/Utilities.hs +1/−1
app/Main.hs view
@@ -33,12 +33,12 @@ -- Generate image let params = defaultImageParams {format = PNG, - hId = Just "31SF81NG00ES",- size = Just 30,- color = Just (242,38,19),+ hId = Just "31SB2CWG00DZ",+ size = Just 205, lineSpacing = Just 2, lineSpacingVariance = Just 0.2, wordSpacingVariance = Just 0.4,+ width = Just 800, randomSeed = Randomize} imageByteString <- renderImage creds params "Hello World!"
handwriting.cabal view
@@ -1,5 +1,5 @@ name: handwriting-version: 0.1.0.1+version: 0.1.0.2 synopsis: API Client for the handwriting.io API. description: Please see README.md homepage: http://github.com/ismailmustafa/handwriting-haskell#readme@@ -30,7 +30,7 @@ , transformers default-language: Haskell2010 -executable handwriting-exe+executable handwriting hs-source-dirs: app main-is: Main.hs ghc-options: -threaded -rtsopts -with-rtsopts=-N
src/Network/Handwriting.hs view
@@ -18,7 +18,7 @@ getHandwriting, getHandwritings, renderImage,- -- * Types, DataTypes, and Utilites+ -- * Types, DataTypes, and Utilities Color, Credentials(..), defaultImageParams,
src/Network/Internal/Model.hs view
@@ -24,7 +24,7 @@ defaultImageParams ) where -import Data.Aeson (FromJSON)+import Data.Aeson (FromJSON, ToJSON) import Data.Monoid ((<>), mconcat) import Data.Text import Data.Word (Word8)@@ -68,19 +68,20 @@ {-| Handwriting JSON instance. -} instance FromJSON Handwriting+instance ToJSON Handwriting {-| Color type representing (R,G,B). -} type Color = (Word8, Word8, Word8) -{-| Format determines Rendered image format in either +{-| Format determines rendered image format in either png or pdf. -} data Format = PNG | PDF deriving (Show) -{-| RandomSeed is used to specify is every rendered+{-| RandomSeed is used to specify if every rendered image called with the same parameters should render- differently or the same every time.+ differently or the same each time. -} data RandomSeed = Randomize | Repeatable deriving (Show)
src/Network/Internal/Utilities.hs view
@@ -9,7 +9,7 @@ -- Stability : provisional -- Portability : OverloadedStrings ----- Helper functions that don't blong anywhere else.+-- Helper functions that don't belong anywhere else. -- -------------------------------------------------------------------------------