Last active
January 1, 2021 14:44
-
-
Save exarkun/dc0123fb1a099e5a81918d8528a7d13e 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
withSystemTempFile "plaintext.txt" $ \path handle -> do | |
B.hPut handle "Hello, world." | |
contents <- withBinaryFile path ReadMode B.hGetContents | |
return () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment