[GHC] #1201: ghci runs Template Haskell splices 4 times
GHC
cvs-ghc at haskell.org
Mon Jan 21 23:04:50 CET 2013
#1201: ghci runs Template Haskell splices 4 times
---------------------------------+------------------------------------------
Reporter: igloo | Owner: simonpj
Type: bug | Status: new
Priority: low | Milestone: _|_
Component: Template Haskell | Version: 6.6
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase: ghci018
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by morabbin):
Confirmed still happens in GHCi 7.6.1, but with a minor change to the
splice:
{{{
$(do runIO $ (System.Random.randomIO :: IO Int) >>= print; [| 1 |] )
}}}
i.e., use `System.Random` not `Random`.
Given SPJ's comment above, close as wontifx?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1201#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list