
16 Dec
2006
16 Dec
'06
6:56 a.m.
Hi, I'm trying this in ghci: let b = array (1,33) [(i,False) | i <- [1..33]] after :m Data.Array.IArray. It gives me that error message: <interactive>:1:8: No instance for (IArray a Bool) arising from use of `array' at <interactive>:1:8-12 Probable fix: add an instance declaration for (IArray a Bool) In the definition of `b': b = array (1, 33) ([(i, False) | i <- [1 .. 33]]) Why? Thanks, Maurício