facebookincubator / retrie

Retrie is a powerful, easy-to-use codemodding tool for Haskell.
MIT License
500 stars 30 forks source link

Exception: conPatHelper RecCon #28

Open pepeiborra opened 3 years ago

pepeiborra commented 3 years ago
Exception: conPatHelper RecCon
CallStack (from HasCallStack):
  error, called at ./Retrie/Expr.hs:237:20 in retrie-1.0.0.0-Gxsbd0BXDFHOYPsFCFbpR:Retrie.Expr

https://github.com/facebookincubator/retrie/blob/543907ea028ce82455d2cbd63ebe72d34b7b4940/Retrie/Expr.hs#L238

We should look into doing something else here, like just returning the original expression, rather than crashing

xich commented 3 years ago

This is thrown within patToExpr, so we don't have an expression to return. The only thing we can really do is abort mission.

We should fix it though. Have a repro?