ghci-history-parser

parse output of ghci ":history" command

Latest on Hackage:0.1.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

LicenseRef-PublicDomain licensed by phlummox
Maintained by phlummox2 at gmail dot com

I couldn't see a simple parser for the output of the ghci :history command, with few dependencies, so here is one.

If Parsec is installed, this parser will use it, but if not, it will fall back on the parsers in Text.ParserCombinators.ReadP, found in base.

For an example of use, see GHCi.History.Parse.