[GHC] #8831: Cannot use Template Haskell splice in ghci
GHC
ghc-devs at haskell.org
Fri Feb 28 21:00:15 UTC 2014
#8831: Cannot use Template Haskell splice in ghci
------------------------------------+---------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 7.8.1-rc1
Keywords: | Operating System: MacOS X
Architecture: x86_64 (amd64) | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+---------------------------------
I have this module:
{{{
{-# LANGUAGE TemplateHaskell #-}
module A where
foo = [| 3 |]
}}}
Now, I do this in ghci:
{{{
> :seti -XTemplateHaskell
> :load A.hs
[1 of 1] Compiling A ( A.hs, interpreted )
Ok, modules loaded: A.
> $foo
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package containers-0.5.4.0 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package template-haskell ... linking ... done.
unknown package: main
}}}
The problem is the last line, failing to find the `main` package. I can
reproduce this issue in 7.8rc1 and in HEAD.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8831>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list