Hoogle Search

Within LTS Haskell 24.45 (ghc-9.10.3)

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

  1. newtype ParsecT e s (m :: Type -> Type) a

    megaparsec Text.Megaparsec.Internal

    ParsecT e s m a is a parser with custom data component of error e, stream type s, underlying monad m and return type a.

  2. ParsecT :: (forall b . () => State s e -> (a -> State s e -> Hints (Token s) -> m b) -> (ParseError s e -> State s e -> m b) -> (a -> State s e -> Hints (Token s) -> m b) -> (ParseError s e -> State s e -> m b) -> m b) -> ParsecT e s (m :: Type -> Type) a

    megaparsec Text.Megaparsec.Internal

    No documentation available.

  3. module Text.Megaparsec.Pos

    Textual source position. The position includes name of file, line number, and column number. You probably do not want to import this module directly because Text.Megaparsec re-exports it anyway.

  4. data Pos

    megaparsec Text.Megaparsec.Pos

    Pos is the type for positive integers. This is used to represent line number, column number, and similar things like indentation level. Semigroup instance can be used to safely and efficiently add Poses together.

  5. data PosState s

    megaparsec Text.Megaparsec.State

    A special kind of state that is used to calculate line/column positions on demand.

  6. PosState :: s -> Int -> SourcePos -> Pos -> String -> PosState s

    megaparsec Text.Megaparsec.State

    No documentation available.

  7. module Safe.Partial

    ConstraintKind synonym for marking partial functions

  8. type Partial = HasCallStack

    safe Safe.Partial

    A constraint synonym which denotes that the function is partial, and will (on GHC 8.* and up) produce a stack trace on failure. You may mark your own non-total functions as Partial, if necessary, and this will ensure that they produce useful stack traces.

  9. type Partial = HasCallStack

    extra Control.Exception.Extra

    A constraint which documents that a function is partial, and on GHC 8.0 and above produces a stack trace on failure. For example:

    myHead :: Partial => [a] -> a
    myHead [] = error "bad"
    myHead (x:xs) = x
    
    When using Partial with GHC 7.8 or below you need to enable the language feature ConstraintKinds, e.g. {-# LANGUAGE ConstraintKinds #-} at the top of the file.

  10. type Partial = HasCallStack

    extra Extra

    A constraint which documents that a function is partial, and on GHC 8.0 and above produces a stack trace on failure. For example:

    myHead :: Partial => [a] -> a
    myHead [] = error "bad"
    myHead (x:xs) = x
    
    When using Partial with GHC 7.8 or below you need to enable the language feature ConstraintKinds, e.g. {-# LANGUAGE ConstraintKinds #-} at the top of the file.

Page 73 of many | Previous | Next