On Tue, May 24, 2011 at 6:47 AM, Johannes Waldmann <waldm...@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 :) _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe