Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. manyTill' :: MonadPlus m => m a -> m b -> m [a]

    attoparsec Data.Attoparsec.ByteString

    manyTill' p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:

    simpleComment   = string "<!--" *> manyTill' anyChar (string "-->")
    
    (Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.) The value returned by p is forced to WHNF.

  2. skipMany :: Alternative f => f a -> f ()

    attoparsec Data.Attoparsec.ByteString

    Skip zero or more instances of an action.

  3. skipMany1 :: Alternative f => f a -> f ()

    attoparsec Data.Attoparsec.ByteString

    Skip one or more instances of an action.

  4. many' :: MonadPlus m => m a -> m [a]

    attoparsec Data.Attoparsec.ByteString.Char8

    many' p applies the action p zero or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.

    word  = many' letter
    

  5. many1 :: Alternative f => f a -> f [a]

    attoparsec Data.Attoparsec.ByteString.Char8

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

    word  = many1 letter
    

  6. many1' :: MonadPlus m => m a -> m [a]

    attoparsec Data.Attoparsec.ByteString.Char8

    many1' p applies the action p one or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.

    word  = many1' letter
    

  7. manyTill :: Alternative f => f a -> f b -> f [a]

    attoparsec Data.Attoparsec.ByteString.Char8

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

    simpleComment   = string "<!--" *> manyTill anyChar (string "-->")
    
    (Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.)

  8. manyTill' :: MonadPlus m => m a -> m b -> m [a]

    attoparsec Data.Attoparsec.ByteString.Char8

    manyTill' p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:

    simpleComment   = string "<!--" *> manyTill' anyChar (string "-->")
    
    (Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.) The value returned by p is forced to WHNF.

  9. skipMany :: Alternative f => f a -> f ()

    attoparsec Data.Attoparsec.ByteString.Char8

    Skip zero or more instances of an action.

  10. skipMany1 :: Alternative f => f a -> f ()

    attoparsec Data.Attoparsec.ByteString.Char8

    Skip one or more instances of an action.

Page 97 of many | Previous | Next