Skip to content

Commit

Permalink
file-handles: close the second handle
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin committed Oct 21, 2019
1 parent d7658dd commit f4ff15e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions file-handles.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ main =
atEnd <- hIsEOF h
putStrLn (show atEnd)

hClose h

removeFile "hello.txt"

0 comments on commit f4ff15e

Please sign in to comment.