Skip to content

For an as-pattern, remove the leading whitespace => trailing?

(low low low priority) This is just about the wording of the suggestion in error message.

[1 of 1] Compiling Main             ( leading.hs, leading.o )

leading.hs:1:2: error:
    Suffix occurrence of @. For an as-pattern, remove the leading whitespace.
  |
1 | x@ () = ()
  |  ^

Instead of "leading" I expect "trailing" (relative to the marked position of the @ operator).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information