Tutorial for parsing Haskell code
===

I haven't been able to find any good tutorials for how to parse Haskell with Haskell, e.g. using [haskell-src-exts][1] or [GHC as a library][2]. Do any thorough tutorials exist?


  [1]: http://hackage.haskell.org/package/haskell-src-exts
  [2]: http://www.haskell.org/haskellwiki/GHC/As_a_library