Template Haskell of GHC 7.8 (again)

Simon Peyton Jones simonpj at microsoft.com
Tue Mar 11 11:04:33 UTC 2014


Yes: https://ghc.haskell.org/trac/ghc/ticket/8833
Austin is looking at this for the 7.8 release

Simon

| -----Original Message-----
| From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Kazu
| Yamamoto
| Sent: 11 March 2014 06:32
| To: ghc-devs at haskell.org
| Subject: Template Haskell of GHC 7.8 (again)
| 
| Hi,
| 
| With the attached file, say Printf.hs, GHCi 7.6.3 works
| as follows:
| 
| 	% ghci Printf.hs
| 	[1 of 1] Compiling Printf           ( Printf.hs, interpreted )
| 	Ok, modules loaded: Printf.
| 	> :set -XTemplateHaskell
| 	> putStrLn ( $(pr "Hello") )
| 	Hello
| 
| "Hello" is printed. Good. However, with GHC 7.8, the following error
| occurs:
| 
| 	% ghci Printf.hs
| 	[1 of 1] Compiling Printf           ( Printf.hs, interpreted )
| 	Ok, modules loaded: Printf.
| 	> :set -XTemplateHaskell
| 	> putStrLn ( $(pr "Hello") )
| 	unknown package: main
| 
| Is this a bug of Template Haskell of GHC 7.8?
| 
| --Kazu


More information about the ghc-devs mailing list