From 400d1cdc576b8b77b6db6141e437e7ddf0e52dc0 Mon Sep 17 00:00:00 2001 From: "EEva (JPotier)" Date: Tue, 29 Dec 2020 10:47:28 +0200 Subject: [PATCH] Initial commit --- day15/main.hs | 16 ++++++++++++++++ template.hs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 day15/main.hs diff --git a/day15/main.hs b/day15/main.hs new file mode 100755 index 0000000..0f8bacb --- /dev/null +++ b/day15/main.hs @@ -0,0 +1,16 @@ +#! /usr/bin/env -S"ANSWER=42" nix-shell +#! nix-shell -p ghcid +#! nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [pretty-simple])" +#! nix-shell -i "ghcid -c 'ghci' -T main" + +{-# OPTIONS_GHC -Wall -Wincomplete-uni-patterns #-} +{-# OPTIONS_GHC -Wno-unused-top-binds -Wno-unused-imports #-} +{-# OPTIONS_GHC -Wno-unused-matches #-} +{-# LANGUAGE OverloadedStrings #-} + +import Debug.Trace (trace) +import Text.Pretty.Simple + +main :: IO () +main = do + putStrLn ":: Day 15 - Part 1" diff --git a/template.hs b/template.hs index a73bce0..43783e2 100755 --- a/template.hs +++ b/template.hs @@ -13,4 +13,4 @@ import Text.Pretty.Simple main :: IO () main = do - putStrLn "Day x - Part 1" + putStrLn ":: Day x - Part 1"