[GHC] #10638: quoting and Template Haskell handling for prim and javascript foreign imports broken

GHC ghc-devs at haskell.org
Tue Jul 14 20:40:25 UTC 2015


#10638: quoting and Template Haskell handling for prim and javascript foreign
imports broken
-------------------------------------+-------------------------------------
              Reporter:  luite       |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:  7.10.2
             Component:  Compiler    |           Version:  7.10.1
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 In GHC 7.10.1, Template Haskell support was added for all calling
 conventions. Unfortunately a few cases are unhandled, which makes the TH
 code treat the `prim` and `javascript` calling conventions as if they were
 C calling conventions, adding the `static` keyword and running them
 through `parseCImport`.

 This is particularly bad for `javascript` imports, since most JS imports
 aren't valid C imports, so they get rejected.

 I'm testing a fix for this that I'll submit later today. I hope this is in
 time for 7.10.2

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


More information about the ghc-tickets mailing list