Skip to content
Snippets Groups Projects
Commit 8168b42a authored by Vladislav Zavialov's avatar Vladislav Zavialov
Browse files

Whitespace-sensitive bang patterns (#1087, #17162)

This patch implements a part of GHC Proposal #229 that covers five
operators:

* the bang operator (!)
* the tilde operator (~)
* the at operator (@)
* the dollar operator ($)
* the double dollar operator ($$)

Based on surrounding whitespace, these operators are disambiguated into
bang patterns, lazy patterns, strictness annotations, type
applications, splices, and typed splices.

This patch doesn't cover the (-) operator or the -Woperator-whitespace
warning, which are left as future work.
parent 5a08f7d4
No related branches found
No related tags found
1 merge request!1664Whitespace-sensitive bang patterns (#1087, #17162)
Pipeline #13264 failed
Showing
with 447 additions and 388 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment