Safe Haskell | Safe-Inferred |
---|
Provides the HistoryItem
data type, representing an entry in ghci's history
listing.
- data FilePos = FilePos {}
- data HistoryItem = HistoryItem {}
- startLine :: HistoryItem -> Int
- startCol :: HistoryItem -> Int
- endLine :: HistoryItem -> Int
- endCol :: HistoryItem -> Int
Documentation
Represents a position in a source file, line and column,
counting from 1. (Just as GHCi :history
output does.)
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