Skip to content
  • Simon Peyton Jones's avatar
    In the Template Haskell pretty printer, don't call error · 7f7c9edd
    Simon Peyton Jones authored
    There were two cases in which we called error
      * An InfixE with an operator epxression other than VarE or ConE
      * A comprehension with empty Stmts, ie CompE []
    
    Crashing doesn't help much.  Now the library puts in the pretty
    printed output a textual signal about what went wrong.
    
    This addresses the crash in Trac #7235, although doesn't fix
    the underlying cause, which remains shrouded in obscurity.
    7f7c9edd