[Haskell-cafe] Re: is there a way to pretty print a module?
aeyakovenko at gmail.com
Thu Oct 30 13:15:59 EDT 2008
>> is there a way to pretty print a module?
>> module Main where
>> import Language.Haskell.TH
>> main = do
>> print $ pprint Main
> haskell-src should be able to do that.
I think haskell-src requires you to read the module at run time. I
want to embed the contents of the module in my program. Basically a
program that can print itself.
More information about the Haskell-Cafe