25 lines
614 B
Haskell
Executable file
25 lines
614 B
Haskell
Executable file
#! /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
|