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

Y2015.D07

Description

Solutions to the day 07 set of problems for adventofcode.com.

Synopsis

Documentation

wire #

Arguments

:: String

Wire to find voltage on

-> [Instruction]

List of instructions

-> Word16

Resulting voltage on indicated wire

Constructs then returns resulting voltage from wiring spec

circuitParser #

Arguments

:: Parser [Instruction]

Parser

Parsec parser for list of Instructions

parseCircuits #

Arguments

:: String

Input string

-> [Instruction]

Either parse error or Instructions

Helper function to parse Instructions

override #

Arguments

:: Word16

Value to inject into Instruction.

-> Instruction

Resulting Instruction.

Inject a manual instruction.