[Haskell-beginners] Can't compile Diagrams tutorial example
Roger Mason
rmason at mun.ca
Fri Aug 29 20:04:42 UTC 2014
Hello,
Roger Mason <rmason at mun.ca> writes:
> I have the following code from the Diagrams package tutorial:
>
>> {-# LANGUAGE NoMonomorphismRestriction #-}
>>
>> import Diagrams.Prelude
>> import Diagrams.Backend.SVG.CmdLine
>
>> main = mainWith (example :: Diagram B R2)
>> example = circle 1 # fc blue
>> # lw veryThick
>> # lc purple
>> # dashing [0.2,0.05] 0
>
> I get the following error on compilation using GHC 7.6.3:
Found the problem:
# dashing [0.2,0.05] 0
should read
# dashingG [0.2,0.05] 0
Sorry for the noise.
Roger
More information about the Beginners
mailing list