Skip to content
  • Vladislav Zavialov's avatar
    Improve parser error messages for TypeApplications · 0fde5377
    Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
    With this patch, we always parse  f @t  as a type application,
    thereby producing better error messages.
    
    This steals two syntactic forms:
    
    * Prefix form of the @-operator in expressions. Since the @-operator is
      a divergence from the Haskell Report anyway, this is not a major loss.
    
    * Prefix form of @-patterns. Since we are stealing loose infix form
      anyway, might as well sacrifice the prefix form for the sake of much
      better error messages.
    0fde5377