[GHC] #12410: Somehow detect splicing in ghci

GHC ghc-devs at haskell.org
Tue Jul 19 19:30:30 UTC 2016


#12410: Somehow detect splicing in ghci
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.0.1
      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:                    |
-------------------------------------+-------------------------------------
Changes (by goldfire):

 * component:  Compiler => Template Haskell


Comment:

 GHCi sees splices as ''expression'' splices. You want a ''declaration''
 splice. The truth is that either one is reasonable. But perhaps GHCi can
 detect what you mean by the types and Do The Right Thing. Just like it
 already does to detect when you want an `IO` action.

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


More information about the ghc-tickets mailing list