I just discovered that this
foo = case ((), ()) of
( ()
, () ) -> ()
fails with
/tmp/wtmpf-file11080.hs:3:8:
parse error (possibly incorrect indentation or mismatched brackets)
This can be made to work by indenting the second line of the pattern
foo = case ((), ()) of
( ()
, () ) -> ()
but this feels inconsistent with my usual style, especially in
bar = case ( some lengthy :: Complicated typed expression
, another also lengthy :: Expression with (Other types) ) of
( Complicated (Pattern match) to (unwrap)
, Expression that's (Again not so short) ) -> the Rest of my Code
How should the above be rewritten / formatted to look most consistent?