[GHC] #13587: addTopDecls fails with typed Template Haskell

GHC ghc-devs at haskell.org
Thu Apr 20 04:38:18 UTC 2017


#13587: addTopDecls fails with typed Template Haskell
-------------------------------------+-------------------------------------
        Reporter:  tmcdonell         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.2.1-rc1
      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 erikd):

 The `-ddump-rn` output is:
 {{{

 ==================== Renamer ====================
 Main.sin' :: Double -> Double
 Main.sin' = $$(importDoubleToDouble "sin")
 Main.cos' :: Double -> Double
 Main.cos' = $$(importDoubleToDouble "cos")
 Main.main :: IO ()
 Main.main
   = do print (Main.sin' 0)
        print (Main.cos' pi)


 ==================== Renamer ====================


 ==================== Renamer ====================
 foreign import ccall unsafe "cos" Main.cos :: Double -> Double
 }}}

 Not sure where to go with this now.

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


More information about the ghc-tickets mailing list