[Haskell-cafe] How to capture the output of GHCi :show command

Alex agrambot at gmail.com
Tue Jun 7 18:02:19 UTC 2016


I would like to be able to bind the output of GHCi's :show to a
variable, but I don't see a nice way to do so. Is it possible to do this
directly in GHCi?

My specific use for this is appending to the current prompt.



More information about the Haskell-Cafe mailing list