Skip to content
  • Ben Gamari's avatar
    Make `catch` lazy in the action · 30ee9102
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    Previously
    ```lang=haskell
    catch (error "uh oh") (\(_ :: SomeException) -> print "it failed")
    ```
    would unexpectedly fail with "uh oh" instead of the handler being run
    due to the strictness of `catch` in its first argument. See #11555 for
    details.
    
    Test Plan: Validate
    
    Reviewers: austin, hvr, simonpj
    
    Reviewed By: simonpj
    
    Subscribers: simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1973
    
    GHC Trac Issues: #11555
    30ee9102