[GHC] #15526: Explain or remove mystery import in Unsafe.Coerce
GHC
ghc-devs at haskell.org
Wed Aug 15 19:48:59 UTC 2018
#15526: Explain or remove mystery import in Unsafe.Coerce
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 8.8.1
Component: Core | Version: 8.4.3
Libraries |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Other
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
`Unsafe.Coerce` has the line
{{{#!hs
import GHC.Integer () -- for build ordering
}}}
It is not at all clear to me why build ordering demands that `GHC.Integer`
be compiled before `Unsafe.Coerce` when the latter uses no numeric
literals, no arithmetic, and no numeric types. If there's a real reason
for this, the comment should be expanded. Otherwise, the import should be
removed.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15526>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list