
#11159: '-interactive-print myPrint' forgotten after :load or :reload -------------------------------------+------------------------------------- Reporter: hukarere | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #5461 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * cc: watashi (added) Comment: Hi bravit, thanks for having a look. After a `:reload`, the interactive printer doesn't work anymore. Here is an example. {{{ $ cat Test.hs module SpecPrinter where import System.IO sprint a = putStrLn $ show a ++ "!" }}} {{{ $ ~/ghc-devel2/inplace/bin/ghc-stage2 --version The Glorious Glasgow Haskell Compilation System, version 7.11.20151216 }}} {{{ $ ~/ghc-devel2/inplace/bin/ghc-stage2 --interactive -interactive- print=SpecPrinter.sprint Test GHCi, version 7.11.20151216: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling SpecPrinter ( Test.hs, interpreted ) Ok, modules loaded: SpecPrinter. *SpecPrinter> "hi" "hi"! *SpecPrinter> :reload Ok, modules loaded: SpecPrinter. *SpecPrinter> "hi" "hi" }}} Note that after the `:reload`, the exclamation mark (`!`) isn't printed anymore. Do you agree this is not working as expected? I'm seeing the same behaviour with ghc-7.10.3 as with HEAD. CC @watashi, as the author of D867. I also note that a test was missing from that Diff, so maybe it recently got broken again? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11159#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler