License | MIT |
---|---|
Maintainer | @tylerjl |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Shared functions that support solutions to problems for the adventofcode.com challenges.
Synopsis
- (<&&>) :: (a -> Bool) -> (a -> Bool) -> a -> Bool
- (<||>) :: (a -> Bool) -> (a -> Bool) -> a -> Bool
- regularParse :: Parser a -> String -> Either ParseError a
- intParser :: Parser Int
- regularParse' :: Parser a -> Text -> Either ParseError a
- intParser' :: Parser Int
Documentation
:: (a -> Bool) | Predicate 1 |
-> (a -> Bool) | Predicate 2 |
-> a | Predicate target |
-> Bool | Logical and for predicates |
Combinator operator for predicates
:: (a -> Bool) | Predicate 1 |
-> (a -> Bool) | Predicate 2 |
-> a | Predicate target |
-> Bool | Logical or for predicates |
Combinator operator for predicates
regularParse :: Parser a -> String -> Either ParseError a #
Generic parsing wrapper
regularParse' :: Parser a -> Text -> Either ParseError a #
Generic parser for Text
values