aoc2020-0.1.0.0: Development environment for Advent of Code challenges
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

Instances details
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).

newtype Day #

Constructors

Day 

Fields

Instances

Instances details
Bounded Day 
Instance details

Defined in Advent.Types

Methods

minBound :: Day #

maxBound :: Day #

Enum Day 
Instance details

Defined in Advent.Types

Methods

succ :: Day -> Day #

pred :: Day -> Day #

toEnum :: Int -> Day #

fromEnum :: Day -> Int #

enumFrom :: Day -> [Day] #

enumFromThen :: Day -> Day -> [Day] #

enumFromTo :: Day -> Day -> [Day] #

enumFromThenTo :: Day -> Day -> Day -> [Day] #

Eq Day 
Instance details

Defined in Advent.Types

Methods

(==) :: Day -> Day -> Bool #

(/=) :: Day -> Day -> Bool #

Ord Day 
Instance details

Defined in Advent.Types

Methods

compare :: Day -> Day -> Ordering #

(<) :: Day -> Day -> Bool #

(<=) :: Day -> Day -> Bool #

(>) :: Day -> Day -> Bool #

(>=) :: Day -> Day -> Bool #

max :: Day -> Day -> Day #

min :: Day -> Day -> Day #

Show Day 
Instance details

Defined in Advent.Types

Methods

showsPrec :: Int -> Day -> ShowS #

show :: Day -> String #

showList :: [Day] -> ShowS #

Generic Day 
Instance details

Defined in Advent.Types

Associated Types

type Rep Day :: Type -> Type #

Methods

from :: Day -> Rep Day x #

to :: Rep Day x -> Day #

FromJSON Day 
Instance details

Defined in Advent.Types

Methods

parseJSON :: Value -> Parser Day

parseJSONList :: Value -> Parser [Day]

ToJSON Day 
Instance details

Defined in Advent.Types

Methods

toJSON :: Day -> Value

toEncoding :: Day -> Encoding

toJSONList :: [Day] -> Value

toEncodingList :: [Day] -> Encoding

FromJSONKey Day 
Instance details

Defined in Advent.Types

Methods

fromJSONKey :: FromJSONKeyFunction Day

fromJSONKeyList :: FromJSONKeyFunction [Day]

ToJSONKey Day 
Instance details

Defined in Advent.Types

Methods

toJSONKey :: ToJSONKeyFunction Day

toJSONKeyList :: ToJSONKeyFunction [Day]

ToHttpApiData Day 
Instance details

Defined in Advent.Types

type Rep Day 
Instance details

Defined in Advent.Types

type Rep Day = D1 ('MetaData "Day" "Advent.Types" "advent-of-code-api-0.2.8.1-3FkUEu0aXQhIZnbzejZ5HY" 'True) (C1 ('MetaCons "Day" 'PrefixI 'True) (S1 ('MetaSel ('Just "dayFinite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Finite 25))))

countdownConsole Source #

Arguments

:: MonadIO m 
=> Integer

year of challenge

-> Day

day to count down to

-> m a

callback on release

-> m a 

Run a countdown on the console.

charPart :: Char -> Maybe Part Source #

Parse a Char into a Part

showAoCError :: AoCError -> [String] Source #

data TestMeta Source #

Constructors

TM 

Instances

Instances details
Show TestMeta Source # 
Instance details

Defined in AOC.Run.Load

Parsers