[Haskell] ghc as a library and profiling