Skip to content
  • Vladislav Zavialov's avatar
    Whitespace-sensitive bang patterns (#1087, #17162) · 8168b42a
    Vladislav Zavialov authored
    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.
    8168b42a