utf8-prelude: Prelude and System.IO with UTF8 text I/O

[ bsd3, deprecated, library, program, system ] [ Propose Tags ]

utf8-prelude provides variants of Prelude and System.IO using UTF8 text I/O operations, making UTF8 text I/O even simpler.

Three simple steps to switch to UTF8 with your Haskell code:

  • In all modules import Prelude explicitly and replace every occurrence of Prelude with UTF8Prelude.

  • Use the NoImplicitPrelude language extension.

  • In all modules replace every occurrence of System.IO with System.UTF8IO.

utf8-prelude also provides a basic testing tool: utf8-test tests several functions regarding UTF8 text I/O. Note: utf8-test creates a file named writeFile_test.txt in the current working directory.

utf8-prelude is based on utf8-string: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string/index.html

This package will be obsolate with GHC if GHC will have porper unicode support for text I/O. It is planned beyond GHC 6.10: http://hackage.haskell.org/trac/ghc/wiki/Status/Releases


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6
Dependencies base, utf8-string [details]
License BSD-3-Clause
Copyright (c) 2008 by Péter Diviánszky
Author Péter Diviánszky <divip@aszt.inf.elte.hu>
Maintainer Péter Diviánszky <divip@aszt.inf.elte.hu>
Category System
Uploaded by PeterDivianszky at 2008-10-07T18:26:02Z
Reverse Dependencies 2 direct, 0 indirect [details]
Executables utf8-test
Downloads 5229 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]