[GHC] #14574: Template Haskell Uniq ~ Int leads to external interpreter cross compilation trouble
GHC
ghc-devs at haskell.org
Mon Dec 18 06:22:08 UTC 2017
#14574: Template Haskell Uniq ~ Int leads to external interpreter cross compilation
trouble
-------------------------------------+-------------------------------------
Reporter: luite | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.3
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 luite):
I now have a patch that validates on `ghc-8.4` and `master`.
Changing it to `type Uniq = Integer` turned out to be easiest because GHC
doesn't know the data constructor for `Int64`. And I think `Integer` is
actually more appropriate here.
Some of the other types in the TH library are still machine sized, like
operator precedence, but I think those don't lead to many problems in
practice, since they tend to be user supplied.
I still need to do a bit more testing with GHCJS to make sure that I
haven't missed anything.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14574#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list