[GHC] #15128: emitPrimOp: can't translate PrimOp
GHC
ghc-devs at haskell.org
Tue May 8 15:01:37 UTC 2018
#15128: emitPrimOp: can't translate PrimOp
-------------------------------------+-------------------------------------
Reporter: tianxiaogu | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.5
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
> You're trying to coerce a state token to ByteArray#.
Which is certainly a bad thing to do. I wonder if we can produce a more
civilised error, from Core Lint, perhaps? We should not unsafely coerce
between types with different representations, and that might not be too
hard to spot. Just by looking at the kind of the two types.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15128#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list