ghc-internal-9.1300.0: Basic libraries
Copyright(c) The University of Glasgow 2008-2009
Licensesee libraries/base/LICENSE
Maintainerlibraries@haskell.org
Stabilityinternal
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Internal.IO.Encoding.Iconv

Description

This module provides text encoding/decoding using iconv

Synopsis

Documentation

mkIconvEncoding :: CodingFailureMode -> String -> IO (Maybe TextEncoding) Source #

Construct an iconv-based TextEncoding for the given character set and CodingFailureMode.

As iconv is missing in some minimal environments (e.g. #10298), this checks to ensure that iconv is working properly before returning the encoding, returning Nothing if not.