26 lines
614 B
Haskell
26 lines
614 B
Haskell
|
#! /usr/bin/env -S"ANSWER=42" nix-shell
|
||
|
#! nix-shell -p ghcid
|
||
|
#! nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [])"
|
||
|
#! nix-shell -i "ghcid -c 'ghci -Wall' -T main"
|
||
|
|
||
|
{-# LANGUAGE OverloadedStrings #-}
|
||
|
|
||
|
testData :: [String]
|
||
|
testData = [ "..##......."
|
||
|
, "#...#...#.."
|
||
|
, ".#....#..#."
|
||
|
, "..#.#...#.#"
|
||
|
, ".#...##..#."
|
||
|
, "..#.##....."
|
||
|
, ".#.#.#....#"
|
||
|
, ".#........#"
|
||
|
, "#.##...#..."
|
||
|
, "#...##....#"
|
||
|
, ".#..#...#.#"
|
||
|
]
|
||
|
|
||
|
main :: IO ()
|
||
|
main = do
|
||
|
putStrLn "Day 3 - Part 1"
|
||
|
print testData
|