aoc2018-0.1.0.0: Advent of Code 2018 solutions and auto-runner

Copyright(c) Justin Le 2018
LicenseBSD3
Maintainerjustin@jle.im
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

AOC.Run.Load

Contents

Description

Loading challenge data and prompts.

Synopsis

Documentation

data ChallengePaths Source #

A record of paths corresponding to a specific challenge.

Constructors

CP 
Instances
Show ChallengePaths Source # 
Instance details

Defined in AOC.Run.Load

challengePaths :: Integer -> ChallengeSpec -> ChallengePaths Source #

Generate a ChallengePaths from a specification of a challenge.

data ChallengeData Source #

A record of data (test inputs, answers) corresponding to a specific challenge.

Constructors

CD 

challengeData Source #

Arguments

:: Maybe String

session key

-> Integer

year

-> ChallengeSpec 
-> IO ChallengeData 

Load data associated with a challenge from a given specification. Will fetch answers online and cache if required (and if giten a session token).

countdownConsole Source #

Arguments

:: MonadIO m 
=> Integer

year of challenge

-> Finite 25

day to count down to

-> m a

callback on release

-> m a 

Run a countdown on the console.

timeToRelease #

Arguments

:: Integer

year

-> Finite 25

day

-> IO NominalDiffTime 

Get time until release of a given challenge.

charPart :: Char -> Maybe Part Source #

Parse a Literal into a Part

data TestMeta Source #

Constructors

TM 
Instances
Show TestMeta Source # 
Instance details

Defined in AOC.Run.Load

Parsers