Skip to content

Commit

Permalink
add some necessary type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Apr 21, 2015
1 parent deb3022 commit 737906c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/diagrams-builder-rasterific.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ compileExample (Build{..}) = do

createDirectoryIfMissing True dir

let w = fmap realToFrac width
h = fmap realToFrac height
bopts = mkBuildOpts Rasterific zero (RasterificOptions (mkSizeSpec2D w h))
let w = fmap realToFrac width :: Maybe Float
h = fmap realToFrac height :: Maybe Float
bopts = mkBuildOpts Rasterific (zero :: V2 Float) (RasterificOptions (mkSizeSpec2D w h))
& snippets .~ [f]
& imports .~ [ "Diagrams.Backend.Rasterific" ]
& diaExpr .~ expr
Expand Down

0 comments on commit 737906c

Please sign in to comment.