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: | Line 196: | ||
-} |
-} |
||
import |
import System.Environment (getArgs) |
||
import |
import System.IO ( |
||
Handle, IOMode (..), |
|||
import System.Environment |
|||
hGetChar, hIsEOF, hSetEncoding, stdin, utf8, withFile |
|||
import System.IO |
|||
) |
|||
⚫ | |||
import Control.Monad (forM_, unless) |
|||
⚫ | |||
import Data.Char (ord) |
|||
processCharacters :: Handle -> IO () |
processCharacters :: Handle -> IO () |