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 ControlSystem.MonadEnvironment (getArgs)
import DataSystem.CharIO (
Handle, IOMode (..),
import System.Environment
hGetChar, hIsEOF, hSetEncoding, stdin, utf8, withFile
import System.IO
)
import Text.Printf
import Control.Monad (forM_, unless)
import Text.Printf (printf)
import Data.Char (ord)
 
processCharacters :: Handle -> IO ()