vector-extras-0.2.8.1: Utilities for the "vector" library
Safe HaskellSafe-Inferred
LanguageHaskell2010

VectorExtras.Combinators

Contents

Description

Vector-specialised combinators often used for parsing.

Synopsis

Common

many :: (MonadPlus m, Vector v a) => m a -> m (v a) Source #

sepBy :: (MonadPlus m, Vector v a) => m a -> m sep -> m (v a) Source #

sepBy1 :: (MonadPlus m, Vector v a) => m a -> m sep -> m (v a) Source #

sep :: (MonadPlus m, Vector v a) => m sep -> m a -> m (v a) Source #

Same as sepBy but with arguments flipped. Because the order of arguments in sepBy does not feel right.

sep1 :: (MonadPlus m, Vector v a) => m sep -> m a -> m (v a) Source #

Same as sepBy1 but with arguments flipped. Because the order of arguments in sepBy1 does not feel right.

sepEnd :: (MonadPlus m, Vector v a) => m sep -> m end -> m a -> m (v a) Source #

sepEnd1 :: (MonadPlus m, Vector v a) => m sep -> m end -> m a -> m (v a) Source #