You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one attempts to render an output with a height or width of zero, currently one simply gets an error like user error (error while writing to output stream). For example, given Test.hs containing
importDiagrams.Backend.Cairo.CmdLineimportDiagrams.Prelude
main = defaultMain (hrule 1)
we obtain the following:
$ ghc --make Test && ./Test -w 100 -o Test.png
[1 of 1] Compiling Main ( Test.hs, Test.o )
Linking Test ...
Test: user error (error while writing to output stream)
Note that we only specify a width on the command line; if we specify an explicit height it works fine.
We should at the very least generate a nice error message; or perhaps we could replace a height of 0 by the width, and vice versa.
The text was updated successfully, but these errors were encountered:
If one attempts to render an output with a height or width of zero, currently one simply gets an error like
user error (error while writing to output stream)
. For example, givenTest.hs
containingwe obtain the following:
Note that we only specify a width on the command line; if we specify an explicit height it works fine.
We should at the very least generate a nice error message; or perhaps we could replace a height of 0 by the width, and vice versa.
The text was updated successfully, but these errors were encountered: