unicode.hs 247 B

123456789
  1. import System.Directory
  2. import qualified Data.Text as T
  3. import qualified Data.Text.Encoding as TE
  4. import qualified Data.ByteString.Char8 as S8
  5. main = getDirectoryContents "." >>= mapM_ putStrLn . map fix
  6. fix = T.unpack . TE.decodeUtf8 . S8.pack