Copyright | (c) Eric Mertens 2021 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module provides input files in some of the most commonly
needed formats. It either automatically loads from an inputs
directory, or takes the input file as a command-line argument.
Synopsis
- getRawInput :: Int -> IO String
- inputFileName :: Int -> FilePath
- getInputLines :: Int -> IO [String]
- getInputArray :: Int -> IO (UArray Coord Char)
- getInputMap :: Int -> IO (Map Coord Char)
Documentation
Get the input for the given day.
If a filename is provided in the command line that will be used as the input file.
If the filename is -
the stdin will be used as the input file.
Otherwise the input text file corresponding to the day number will be used.