[Haskell-cafe] code review?

Evan Laforge qdunkan at gmail.com
Tue May 24 19:10:29 CEST 2011

On Tue, May 24, 2011 at 6:47 AM, Johannes Waldmann
<waldmann at imn.htwk-leipzig.de> wrote:
> Evan Laforge <qdunkan <at> gmail.com> writes:
>> [...] a tool that wanted to
>> traverse deep data structures as produced by haskell-src-exts.
>> [...] I heard uniplate was
>> pretty easy to use, and was pretty pleased to turn the entire thing
>> into a single line.
> Please post that line here - J.W.

Getting a bit off subject, and it's nothing special:

moduleQNames :: Types.Module -> [Types.Qualification]
moduleQNames mod = [Types.qualification m | Haskell.Qual _ m _ <-
Uniplate.universeBi mod]

But  just try writing this without a generics library :)

More information about the Haskell-Cafe mailing list