[GHC] #9122: Make Lint check for bad uses of `unsafeCoerce`
GHC
ghc-devs at haskell.org
Mon May 19 15:04:32 UTC 2014
#9122: Make Lint check for bad uses of `unsafeCoerce`
-------------------------------------+------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by goldfire):
What are "the rules"? Where are they written? And, what if someone
''wants'' to do one of the things mentioned? I can imagine wanting to
coerce between lifted and unboxed types or between ints and floats.
(Unboxed types of different sizes, I tend to agree, wouldn't want to get
coerced.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9122#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list