[GHC] #8831: Cannot use Template Haskell splice in ghci

#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

#8831: Cannot use Template Haskell splice in ghci -------------------------------------+---------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+---------------------------------- Changes (by simonpj): * priority: normal => highest * milestone: => 7.8.1 Comment: This looks bad. When did it start to happen? I'm surprised a regression test doesn't catch it. Austin can you investigate? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci -------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+---------------------------------- Changes (by thoughtpolice): * owner: => thoughtpolice Comment: I'm also extremely surprised a test didn't seem to catch this. I'm looking into it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci -------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+---------------------------------- Changes (by thoughtpolice): * version: 7.8.1-rc1 => 7.8.1-rc2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci -------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+---------------------------------- Changes (by kazu-yamamoto): * cc: kazu@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci
-------------------------------------+----------------------------------
Reporter: goldfire | Owner: thoughtpolice
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Template Haskell | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+----------------------------------
Comment (by Austin Seipp

#8831: Cannot use Template Haskell splice in ghci
-------------------------------------+----------------------------------
Reporter: goldfire | Owner: thoughtpolice
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Template Haskell | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+----------------------------------
Comment (by Joachim Breitner

#8831: Cannot use Template Haskell splice in ghci
-------------------------------------+----------------------------------
Reporter: goldfire | Owner: thoughtpolice
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Template Haskell | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+----------------------------------
Comment (by Simon Peyton Jones

#8831: Cannot use Template Haskell splice in ghci
-------------------------------------+----------------------------------
Reporter: goldfire | Owner: thoughtpolice
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Template Haskell | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+----------------------------------
Comment (by Simon Peyton Jones

#8831: Cannot use Template Haskell splice in ghci ---------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: merge Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: ghci/scripts/T8831 | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by simonpj): * status: new => merge * testcase: => ghci/scripts/T8831 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci ---------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: ghci/scripts/T8831 | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8831: Cannot use Template Haskell splice in ghci ---------------------------------------+---------------------------------- Reporter: goldfire | Owner: thoughtpolice Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: ghci/scripts/T8831 | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by kazu-yamamoto): Thanks, Simon. I confirmed that this bug has been fixed. https://github.com/sol/doctest-haskell/issues/76 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8831#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC