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
Definitely related to the v = [ (0,0,0,0)] as when I instead set it to [] no error occurs...
I'm just not sure why this exception is being triggered.
Hacking the source code of the library:
- let colour = _area_spots_4d_palette p !! t
+
+ let colour = case _area_spots_4d_palette p !!? t of
+ Nothing -> do
+ error $ show t ++ "out of" ++ (show $ _area_spots_4d_palette p)
+ Just colour' -> colour'
Just trying to get a simple chart based on https://github.com/timbod7/haskell-chart/wiki/example-8 however getting a
Exception: Prelude.!!: negative index
error unfortunately...Definitely related to the
v = [ (0,0,0,0)]
as when I instead set it to[]
no error occurs...I'm just not sure why this exception is being triggered.
Hacking the source code of the library:
Which then errors with:
No idea where
-9223372036854775808
is coming from... ?The text was updated successfully, but these errors were encountered: