-
-
Save winny-/616a9192a1b7ada7e729724f3b30186b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This works: ghc -o h h.hs && ./h | |
-- | |
-- This does not work: ghci h.hs | |
-- Get the following error: ghc: <stdout>: hFlush: illegal operation (handle is closed) | |
import System.IO | |
main = do | |
putStrLn "hello world" | |
hClose stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment