
#13977: ExnStr doesn't propagate "outwards"
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
While looking into #8091 (see ticket:8091#comment:9) and #13916, I noticed
something that I found rather surprising. Consider this program,
{{{#!hs
hello :: STR Char -> STM Char
hello a = a `orElse` pure 'a'
}}}
Recall that `catchRetry#` (which `orElse` is defined in terms of) has the
following demand signature,
{{{