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

Justin Bailey jgbailey at gmail.com
Tue Jun 7 20:47:15 UTC 2016


See "a hammer for many nails: capturing ghci command output" in the
mail message "getting more out of ghci" sent by Claus Reinke on Sept
25th, 2007 to the Haskell Cafe list:


On Tue, Jun 7, 2016 at 10:02 AM, Alex <agrambot at gmail.com> wrote:
> 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.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list