[GHC] #6162: defer-type-errors + unsafeCoerce
GHC
cvs-ghc at haskell.org
Thu Jun 14 23:40:58 CEST 2012
#6162: defer-type-errors + unsafeCoerce
------------------------------+---------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 7.5 | Keywords: defer-type-errors
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
When evidence of `a ~ b` is missing, -fdefer-type-errors uses `error` to
coerce `a` to `b`. It would nice to allow to use `unsafeCoerce` instead;
for example `' ' :: Int` would give under favourable conditions `32`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6162>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list