Safe Haskell | Safe-Inferred |
---|
Grammar describing the output of ghci's :history
command,
usable by either Parsec or Text.ParserCombinators.ReadP.
- someSpace :: Parsing m => m ()
- num :: Parser Int
- negNum :: Parser Int
- numSpan :: Parser (Int, Int)
- filePos :: Parser FilePos
- unabbrevPosRange :: Parser (FilePos, FilePos)
- abbrevPosRange :: Parser (FilePos, FilePos)
- pointRange :: Parser (FilePos, FilePos)
- posRange :: (Monad f, Parsing f) => f (FilePos, FilePos)
- filename :: Parser String
- funcname :: Parser String
- histLine :: Parser HistoryItem
- emptyHistory :: Parser [HistoryItem]
- nonEmptyHistory :: (Monad m, Parsing m) => m [HistoryItem]
- history :: (Monad f, Parsing f) => f [HistoryItem]
Documentation
unabbrevPosRange :: Parser (FilePos, FilePos)Source
pointRange :: Parser (FilePos, FilePos)Source
pointRange := <num
> ':' <num
>
A point range – i.e., a range whose start point and end point are the same.
posRange :: (Monad f, Parsing f) => f (FilePos, FilePos)Source
posRange
:= <abbrevPosRange
> | <pointRange
> | <unabbrevPosRange
>
histLine :: Parser HistoryItemSource
emptyHistory :: Parser [HistoryItem]Source
An empty history starts with the string "Empty history".
nonEmptyHistory :: (Monad m, Parsing m) => m [HistoryItem]Source
A non-empty history: one or more histLine
s,
followed by the string "<end of history>
", or "...
"
if ghci has cut off remaining entries due to length.
history :: (Monad f, Parsing f) => f [HistoryItem]Source
history
:= <emptyHistory
> | <nonEmptyHistory
>