Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder DFKI GmbH 2010
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred

Common.IO

Description

reading and writing files changed between ghc-6.10.4 and ghc-6.12.1 from latin1 to utf8.

This module allows to continue reading and writing latin1 (HetCASL) files. However, this module does not support to write utf8 files with ghc-6.10.4 or earlier versions.

The encoding only effects the contents. The encoding of file names is always utf8.

Synopsis

Documentation

data Enc

Constructors

Latin1 
Utf8 

Instances

setStdEnc :: Enc -> IO ()

set encoding of stdin and stdout

catchIOException :: a -> IO a -> IO a