Hi,

When I compile the following short part of a program using ghc-2.01,
I encounter a compiler bug. I am not sure that it is the one you ask
programmers using the compiler to report. It sounds to me as if the
compiler doesn't support the use of the expression 'let' in list
compression.


print (list 16)

list :: Int -> [[Int]]
list n =
  [[p,p+4..p+(r-1)*4] | let r = n `div` 4, m <- [1..r], let p =
   (m-1)*4*n+1]

The result of the compilation:

panic! (the `impossible' happened):
        deListComp:LetQual

Best Regards

Huseyin Pehlivan

Reply via email to