$ ghci -package Chart
...
Prelude> :m Graphics.Rendering.Chart.Simple
Prelude Graphics.Rendering.Chart.Simple> plotWindow [0,0.1..2.9] sin
However, I needed to explicitly cast the list into [Double], lest
I get an ambiguous type variable. Am I or the example wrong?
Cheers,
Edward
Hmm, it looks like it works if I do this in GHCI, but not if I stick it
in an HS file.
Cheers,
Edward
You get automatic type-defaulting of ambiguous type variables in the
interactive environment, but not when you compile.
Regards,
Malcolm