<p dir="ltr">I haven't looked at your code since I'm on a mobile, but classy-prelude, of which I'm one of the maintainers, does provide functions that generally work with the Text data type.</p>
<br><div class="gmail_quote">On Sat, Feb 28, 2015, 1:24 PMĀ Bram Neijt <<a href="mailto:bneijt@gmail.com">bneijt@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear reader,<br>
<br>
I wrote some tiny code to parse files into json (to automate escaping<br>
multi-line text).<br>
<br>
It quickly became a collection of "import qualified" and "T.unpack,<br>
T.pack" calls that made the whole thing look ugly [1].<br>
<br>
What "alternative prelude" would help in getting clean code when<br>
combining "aeson" and reading text files?<br>
<br>
Greetings,<br>
<br>
Bram<br>
<br>
[1] Source can be read here: <a href="https://gist.github.com/bneijt/9bdb4b1759790a8463c9" target="_blank">https://gist.github.com/<u></u>bneijt/9bdb4b1759790a8463c9</a><br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-<u></u>bin/mailman/listinfo/haskell-<u></u>cafe</a><br>
</blockquote></div>