Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This currently contains a mix of general lexing utilities and identifier-y lexers.
Synopsis
- data Token a = Token {}
- type Line = Int
- type Column = Int
- data Pos = Pos {}
- touches :: Token a -> Token b -> Bool
- wordyIdChar :: Char -> Bool
- wordyIdStartChar :: Char -> Bool
- symbolyIdChar :: Char -> Bool
- local :: (MonadParsec e s' m, MonadState s m) => (s -> s) -> m a -> m a
- space :: MonadParsec e String m => m ()
- lit :: MonadParsec e String m => String -> m String
- commitAfter2 :: MonadParsec e s m => m a -> m b -> (a -> b -> m c) -> m c
- (<+>) :: (Applicative f, Monoid a) => f a -> f a -> f a
- some' :: MonadParsec e s m => m a -> m (NonEmpty a)
- someTill' :: MonadParsec e s m => m a -> m end -> m (NonEmpty a)
- sepBy1' :: MonadParsec e s m => m a -> m sep -> m (NonEmpty a)
- separated :: MonadParsec e s m => (Token s -> Bool) -> m a -> m a
- wordySep :: Char -> Bool
- pop :: [a] -> [a]
- typeOrAbilityAlt :: Alternative f => (Text -> f a) -> f a
- inc :: Pos -> Pos
Documentation
Instances
Character classifiers
wordyIdChar :: Char -> Bool Source #
wordyIdStartChar :: Char -> Bool Source #
symbolyIdChar :: Char -> Bool Source #
other utils
local :: (MonadParsec e s' m, MonadState s m) => (s -> s) -> m a -> m a Source #
space :: MonadParsec e String m => m () Source #
commitAfter2 :: MonadParsec e s m => m a -> m b -> (a -> b -> m c) -> m c Source #
(<+>) :: (Applicative f, Monoid a) => f a -> f a -> f a infixl 2 Source #
some' :: MonadParsec e s m => m a -> m (NonEmpty a) Source #
someTill' :: MonadParsec e s m => m a -> m end -> m (NonEmpty a) Source #
sepBy1' :: MonadParsec e s m => m a -> m sep -> m (NonEmpty a) Source #
typeOrAbilityAlt :: Alternative f => (Text -> f a) -> f a Source #