[Haskell-cafe] What other prelude to cleanly convert text-files into json

Bram Neijt bneijt at gmail.com
Sat Feb 28 11:23:53 UTC 2015


Dear reader,

I wrote some tiny code to parse files into json (to automate escaping
multi-line text).

It quickly became a collection of "import qualified" and "T.unpack,
T.pack" calls that made the whole thing look ugly [1].

What "alternative prelude" would help in getting clean code when
combining "aeson" and reading text files?

Greetings,

Bram

[1] Source can be read here: https://gist.github.com/bneijt/9bdb4b1759790a8463c9


More information about the Haskell-Cafe mailing list