#1201: ghci runs Template Haskell splices 4 times
---------------------------------+------------------------------------------
    Reporter:  igloo             |       Owner:         
        Type:  bug               |      Status:  new    
    Priority:  normal            |   Milestone:  6.6.2  
   Component:  Template Haskell  |     Version:  6.6    
    Severity:  normal            |    Keywords:         
  Difficulty:  Unknown           |    Testcase:  ghci016
Architecture:  Unknown           |          Os:  Unknown
---------------------------------+------------------------------------------
ghci (both 6.6 and HEAD) appears to run Template Haskell splices 4 times,
 as shown here:
 {{{
 $ ghci -fth -v0
 Prelude> :m + Language.Haskell.TH
 Prelude Language.Haskell.TH> $(do runIO $ (Random.randomIO :: IO Int) >>=
 print; [| 1 |] )
 7184082642420483628
 -8222359774145102883
 2625059211496099566
 1462332877512834399
 1
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1201>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to