[GHC] #14574: Template Haskell Uniq ~ Int leads to external interpreter cross compilation trouble

GHC ghc-devs at haskell.org
Mon Dec 18 14:20:01 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 RyanGlScott):

 Replying to [comment:5 luite]:
 > Changing it to `type Uniq = Integer` turned out to be easiest because
 GHC doesn't know the data constructor for `Int64`.

 What do you mean by this?

 > And I think `Integer` is actually more appropriate here.

 I'm sure `Integer` technically works, but I am worried that we'd lose some
 efficiency by doing this, given how widely used `Name`s are in Template
 Haskell.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14574#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list