with-utf8 (hackage): This minimalistic library helps you navigate the world of text encodings avoiding invalid argument (invalid byte sequence) and invalid argument (invalid character) in runtime.  See this blog post for why this library exists and what exactly it does.  The two most important modules are:  Main.Utf8  System.IO.Utf8
Keywords: io|library|mpl|program|files|haskell|input-output|unicode|utf8