Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. getOffset :: MonadParsec e s m => m Int

    megaparsec Text.Megaparsec

    Get the number of tokens processed so far. See also: setOffset.

  2. parseTest :: (ShowErrorComponent e, Show a, VisualStream s, TraversableStream s) => Parsec e s a -> s -> IO ()

    megaparsec Text.Megaparsec

    The expression parseTest p input applies the parser p on the input input and prints the result to stdout. Useful for testing.

  3. pstateOffset :: PosState s -> !Int

    megaparsec Text.Megaparsec

    Offset corresponding to beginning of pstateInput

  4. stateOffset :: State s e -> {-# UNPACK #-} !Int

    megaparsec Text.Megaparsec

    Number of processed tokens so far

  5. errorOffset :: ParseError s e -> Int

    megaparsec Text.Megaparsec.Error

    Get the offset of a ParseError.

  6. pstateOffset :: PosState s -> !Int

    megaparsec Text.Megaparsec.State

    Offset corresponding to beginning of pstateInput

  7. stateOffset :: State s e -> {-# UNPACK #-} !Int

    megaparsec Text.Megaparsec.State

    Number of processed tokens so far

  8. reachOffset :: TraversableStream s => Int -> PosState s -> (Maybe String, PosState s)

    megaparsec Text.Megaparsec.Stream

    Given an offset o and initial PosState, adjust the state in such a way that it starts at the offset. Return two values (in order):

    • Maybe String representing the line on which the given offset o is located. It can be omitted (i.e. Nothing); in that case error reporting functions will not show offending lines. If returned, the line should satisfy a number of conditions that are described below.
    • The updated PosState which can be in turn used to locate another offset o' given that o' >= o.
    The String representing the offending line in input stream should satisfy the following:
    • It should adequately represent location of token at the offset of interest, that is, character at sourceColumn of the returned SourcePos should correspond to the token at the offset o.
    • It should not include the newline at the end.
    • It should not be empty, if the line happens to be empty, it should be replaced with the string "<empty line>".
    • Tab characters should be replaced by appropriate number of spaces, which is determined by the pstateTabWidth field of PosState.
    Note: type signature of the function was changed in the version 9.0.0.

  9. reachOffsetNoLine :: TraversableStream s => Int -> PosState s -> PosState s

    megaparsec Text.Megaparsec.Stream

    A version of reachOffset that may be faster because it doesn't need to fetch the line at which the given offset in located. The default implementation is this:

    reachOffsetNoLine o pst =
    snd (reachOffset o pst)
    
    Note: type signature of the function was changed in the version 8.0.0.

  10. hSetCursorColumn :: Handle -> Int -> IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

Page 1060 of many | Previous | Next