parse output of ghci ":history" command

Latest on Hackage:

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 to host generated Haddocks.

PublicDomain licensed by phlummox
Maintained by phlummox2 at gmail dot com


Parse the output of ghci's ":history" command

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 the documentation for the module GHCi.History.Parse.


Revision history for ghci-history-parser -- 2016-07-13

  • Allowed for parsing of "zero-span" ranges. -- 2016-06-25

  • Corrections to documentation. -- 2016-06-24

  • First version. Released on an unsuspecting world.

Depends on 2 packages:
Used by 1 package:
comments powered byDisqus