Add a (DEBUG-only) warning for top-level error thunks with uninformative strictness...
authorsimonpj@microsoft.com <unknown>
Tue, 3 Nov 2009 15:50:09 +0000 (15:50 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 3 Nov 2009 15:50:09 +0000 (15:50 +0000)
commitfb9f8859e5707f2c960540bac3efb8efc68ce6ec
tree437aafa7b673dc746c94505c1a21a9014bd92e23
parenteeef817a869bdbfa8820608be081f133dad71071
Add a (DEBUG-only) warning for top-level error thunks with uninformative strictness info

In the past I've seen this in an interface file

   foo = error "urk"

but *without* a bottoming strictness info on 'foo'. This WARN just
checks (non-fatally) for the bad case, so that we can track it down easily
compiler/main/TidyPgm.lhs