Skip to content

Commit

Permalink
Fixed doco for toFile functions
Browse files Browse the repository at this point in the history
  • Loading branch information
timbod7 committed Aug 31, 2014
1 parent 473877e commit c4521d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions chart-cairo/Graphics/Rendering/Chart/Backend/Cairo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ renderableToFile fo path r = cBackendToFile fo cr path
cr = render r (fromIntegral width, fromIntegral height)
(width,height) = _fo_size fo

-- | Generate an image file from anything that can be converted to a renderable.
-- This is a convenience wrapper over `renderableToFile`

-- | Generate an image file from from the state content of an EC
-- computation. The state may have any type that is an instance of
-- `ToRenderable`
toFile :: (Default r, ToRenderable r) => FileOptions -> FilePath -> EC r () -> IO ()
toFile fo path ec = void $ renderableToFile fo path (toRenderable (execEC ec))

Expand Down
6 changes: 3 additions & 3 deletions chart-diagrams/Graphics/Rendering/Chart/Backend/Diagrams.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ renderableToFile fo path r = cBackendToFile fo cb path
where
cb = render r (_fo_size fo)

-- | Generate an image file from anything that can be converted to a renderable.
-- This is a convenience wrapper over `renderableToFile`

-- | Generate an image file from from the state content of an EC
-- computation. The state may have any type that is an instance of
-- `ToRenderable`
toFile :: (Default r,ToRenderable r) => FileOptions -> FilePath -> EC r () -> IO ()
toFile fo path ec = void $ renderableToFile fo path (toRenderable (execEC ec))

Expand Down

0 comments on commit c4521d8

Please sign in to comment.