On Tue, Dec 15, 2009 at 3:15 AM, Ivan Lazar Miljenovic <ivan.miljenovic@gmail.com> wrote:
"Bryan O'Sullivan" <bos@serpentine.com> writes:

>  using either the new locale-aware Handle code in 6.12 or a fallback
> on older releases.

How do you manage this?  Any chance of abstracting something like this
out (ala extensible-exceptions)?

The fallback is very simple: on versions of GHC older than 6.12, you get UTF-8 codecs and your platform's native newline conversion, and that's it :-)  There really isn't anything to abstract.