List indenting in case fails
|Reported by:||laar||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Revisions:|
The following code fails to parse
module Temp where t = case [1..2] of [ 1 , 2 ] -> True _ -> False
Temp.hs:5:9: parse error (possibly incorrect indentation or mismatched brackets)
Which relates to the line , 2. Indenting both that line and the next one is needed to parse the module. This is contrary to what I suspected. As this vertical layout for lists is allowed as expression, I would also expect it to work for patterns.