
#13440: putStr doesn't have the same behavior in GHCi and after compilation with GHC -------------------------------------+------------------------------------- Reporter: vanto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by vanto): for RyanGIScott\\ yes, I am on Windows. I use a standard Windows console (cmd.exe)\\ I also use Linux Debian8 under virtualBox.\\ I have just tested this program on Linux and here are the results.\\ With GHCi the result is:\\ {{{ *Main> main hellomx = 'm' *Main> }}} It seems much better than GHCi on Windows.\\ After compiling, the result is the same as Windows.\\ {{{ vanto@debian:~/sourcehs$./test m hellox = 'm' }}} On the other hand, I used runghc to test the program on Windows and Linux and here are the results:\\ with Windows\\ the result is the same as compilation on Windows\\ {{{ c:\sourcehs>runghc test.hs m hellox = 'm' }}} with Linux\\ the result is the same as GHCi on Windows\\ {{{ vanto@debian:~/sourcehs$ runghc test.hs hellom x = 'm' }}} Hope this help! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13440#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler