Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. manyTill :: forall s (m :: Type -> Type) t u a end . Stream s m t => ParsecT s u m a -> ParsecT s u m end -> ParsecT s u m [a]

    parsec Text.Parsec.Combinator

    manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments:

    simpleComment   = do{ string "<!--"
    ; manyTill anyChar (try (string "-->"))
    }
    
    Note the overlapping parsers anyChar and string "-->", and therefore the use of the try combinator.

  2. skipMany1 :: forall s (m :: Type -> Type) t u a . Stream s m t => ParsecT s u m a -> ParsecT s u m ()

    parsec Text.Parsec.Combinator

    skipMany1 p applies the parser p one or more times, skipping its result.

  3. many :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]

    parsec Text.Parsec.Prim

    many p applies the parser p zero or more times. Returns a list of the returned values of p.

    identifier  = do{ c  <- letter
    ; cs <- many (alphaNum <|> char '_')
    ; return (c:cs)
    }
    

  4. many1 :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]

    parsec Text.Parsec.Prim

    many1 p applies the parser p one or more times. Returns a list of the returned values of p.

    word  = many1 letter
    

  5. manyAccum :: forall a s u (m :: Type -> Type) . (a -> [a] -> [a]) -> ParsecT s u m a -> ParsecT s u m [a]

    parsec Text.Parsec.Prim

    No documentation available.

  6. skipMany :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m ()

    parsec Text.Parsec.Prim

    skipMany p applies the parser p zero or more times, skipping its result.

    spaces  = skipMany space
    

  7. many1 :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]

    parsec Text.ParserCombinators.Parsec.Combinator

    many1 p applies the parser p one or more times. Returns a list of the returned values of p.

    word  = many1 letter
    

  8. manyTill :: forall s (m :: Type -> Type) t u a end . Stream s m t => ParsecT s u m a -> ParsecT s u m end -> ParsecT s u m [a]

    parsec Text.ParserCombinators.Parsec.Combinator

    manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments:

    simpleComment   = do{ string "<!--"
    ; manyTill anyChar (try (string "-->"))
    }
    
    Note the overlapping parsers anyChar and string "-->", and therefore the use of the try combinator.

  9. skipMany1 :: forall s (m :: Type -> Type) t u a . Stream s m t => ParsecT s u m a -> ParsecT s u m ()

    parsec Text.ParserCombinators.Parsec.Combinator

    skipMany1 p applies the parser p one or more times, skipping its result.

  10. many :: forall s u (m :: Type -> Type) a . ParsecT s u m a -> ParsecT s u m [a]

    parsec Text.ParserCombinators.Parsec.Prim

    many p applies the parser p zero or more times. Returns a list of the returned values of p.

    identifier  = do{ c  <- letter
    ; cs <- many (alphaNum <|> char '_')
    ; return (c:cs)
    }
    

Page 104 of many | Previous | Next