Read a file character by character/UTF8: Difference between revisions
Content added Content deleted
(→{{header|Go}}: add Haskell) |
m (→{{header|Haskell}}: (specified imports)) |
||
Line 196:
-}
import
import
Handle, IOMode (..),
hGetChar, hIsEOF, hSetEncoding, stdin, utf8, withFile
)
import Text.Printf▼
import Control.Monad (forM_, unless)
▲import Text.Printf (printf)
import Data.Char (ord)
processCharacters :: Handle -> IO ()
|