adventofcode-0.1.0.0: Haskell solutions to adventofcode
LicenseMIT
Maintainer@tylerjl
Safe HaskellSafe-Inferred
LanguageHaskell2010

Y2015.Util

Description

Shared functions that support solutions to problems for the adventofcode.com challenges.

Synopsis

Documentation

(<&&>) #

Arguments

:: (a -> Bool)

Predicate 1

-> (a -> Bool)

Predicate 2

-> a

Predicate target

-> Bool

Logical and for predicates

Combinator operator for predicates

(<||>) #

Arguments

:: (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

intParser #

Arguments

:: Parser Int

Parsec parser for Int types

Generic Int parser

regularParse' :: Parser a -> Text -> Either ParseError a #

Generic parser for Text values

intParser' #

Arguments

:: Parser Int

Parsec parser for Int types

Generic Int parser for Text