Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
StateT
-based parser.
Synopsis
- runIO :: StateT ByteString IO a -> IO a
- runFileIO :: StateT ByteString IO a -> String -> IO a
- int' :: MonadState ByteString m => m Int
- int1' :: MonadState ByteString m => m Int
- char' :: MonadState ByteString m => m Char
- word' :: MonadState ByteString m => m ByteString
- double' :: MonadState ByteString m => m Double
- ints2' :: MonadState ByteString m => m (Int, Int)
- ints11' :: MonadState ByteString m => m (Int, Int)
- ints3' :: MonadState ByteString m => m (Int, Int, Int)
- ints110' :: MonadState ByteString m => m (Int, Int, Int)
- ints011' :: MonadState ByteString m => m (Int, Int, Int)
- ints111' :: MonadState ByteString m => m (Int, Int, Int)
- ints4' :: MonadState ByteString m => m (Int, Int, Int, Int)
- ints5' :: MonadState ByteString m => m (Int, Int, Int, Int, Int)
- ints6' :: MonadState ByteString m => m (Int, Int, Int, Int, Int, Int)
- line' :: MonadState ByteString m => m ByteString
- withLine' :: MonadState ByteString m => State ByteString a -> m a
- ints' :: MonadState ByteString m => m [Int]
- intsU' :: MonadState ByteString m => m (Vector Int)
- intsN' :: MonadState ByteString m => Int -> m (Vector Int)
- digitsU' :: MonadState ByteString m => m (Vector Int)
Documentation
Primitives
int' :: MonadState ByteString m => m Int #
Parses an Int
.
int1' :: MonadState ByteString m => m Int #
Parses an Int
and substracts one.
char' :: MonadState ByteString m => m Char #
word' :: MonadState ByteString m => m ByteString #
double' :: MonadState ByteString m => m Double #
Tuples
ints2' :: MonadState ByteString m => m (Int, Int) #
ints11' :: MonadState ByteString m => m (Int, Int) #
ints3' :: MonadState ByteString m => m (Int, Int, Int) #
ints110' :: MonadState ByteString m => m (Int, Int, Int) #
ints011' :: MonadState ByteString m => m (Int, Int, Int) #
ints111' :: MonadState ByteString m => m (Int, Int, Int) #
ints4' :: MonadState ByteString m => m (Int, Int, Int, Int) #
ints5' :: MonadState ByteString m => m (Int, Int, Int, Int, Int) #
ints6' :: MonadState ByteString m => m (Int, Int, Int, Int, Int, Int) #
Readers
line' :: MonadState ByteString m => m ByteString #
Reads one line from the state. FIXME: It ignores empty lines.
withLine' :: MonadState ByteString m => State ByteString a -> m a #
Reads one line from the state and runs a pure parser for it.
More
ints' :: MonadState ByteString m => m [Int] #
Reads one line an unboxed vector.
intsU' :: MonadState ByteString m => m (Vector Int) #
Reads one line an unboxed vector.
intsN' :: MonadState ByteString m => Int -> m (Vector Int) #
Reads n values as an unboxed vector.
digitsU' :: MonadState ByteString m => m (Vector Int) #
Reads one line as digits. TODO: one word might be better