ghci-history-parser-0.1.0.2: parse output of ghci ":history" command

Safe HaskellSafe-Inferred

GHCi.History

Description

Provides the HistoryItem data type, representing an entry in ghci's history listing.

Synopsis

Documentation

data FilePos Source

Represents a position in a source file, line and column, counting from 1. (Just as GHCi :history output does.)

Constructors

FilePos 

Fields

lineNum :: Int
 
colNum :: Int
 

Instances

data HistoryItem Source

the type of an item in ghci's history.

startLine :: HistoryItem -> IntSource

same as lineNum . startPos

startCol :: HistoryItem -> IntSource

same as colNum . startPos

endLine :: HistoryItem -> IntSource

same as lineNum . endPos

endCol :: HistoryItem -> IntSource

same as colNum . endPos