summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShivesh Mandalia <mail@shivesh.org>2023-01-14 14:11:21 +0000
committerShivesh Mandalia <mail@shivesh.org>2023-01-14 14:11:21 +0000
commitc6bb7672a458c62c430609b1adb34a8eae7fce83 (patch)
tree0a8da9f9df1ed77e56832af70e10dcd34db7235b
downloadAOC_2022_haskell-c6bb7672a458c62c430609b1adb34a8eae7fce83.tar.gz
AOC_2022_haskell-c6bb7672a458c62c430609b1adb34a8eae7fce83.zip
Initial commit
-rw-r--r--.gitignore23
-rw-r--r--cabal.project3
-rw-r--r--day01/app/Main.hs4
-rw-r--r--day01/day01.cabal22
-rw-r--r--day02/app/Main.hs4
-rw-r--r--day02/day02.cabal22
6 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4c9e245
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,23 @@
+dist
+dist-*
+cabal-dev
+*.o
+*.hi
+*.hie
+*.chi
+*.chs.h
+*.dyn_o
+*.dyn_hi
+.hpc
+.hsenv
+.cabal-sandbox/
+cabal.sandbox.config
+*.prof
+*.aux
+*.hp
+*.eventlog
+.stack-work/
+cabal.project.local
+cabal.project.local~
+.HTF/
+.ghc.environment.*
diff --git a/cabal.project b/cabal.project
new file mode 100644
index 0000000..7d1590d
--- /dev/null
+++ b/cabal.project
@@ -0,0 +1,3 @@
+-- Local packages
+packages: day01
+ day02
diff --git a/day01/app/Main.hs b/day01/app/Main.hs
new file mode 100644
index 0000000..65ae4a0
--- /dev/null
+++ b/day01/app/Main.hs
@@ -0,0 +1,4 @@
+module Main where
+
+main :: IO ()
+main = putStrLn "Hello, Haskell!"
diff --git a/day01/day01.cabal b/day01/day01.cabal
new file mode 100644
index 0000000..9cdc96d
--- /dev/null
+++ b/day01/day01.cabal
@@ -0,0 +1,22 @@
+cabal-version: 2.4
+name: day01
+version: 0.1.0.0
+synopsis:
+
+-- A URL where users can report bugs.
+-- bug-reports:
+license: NONE
+author: Shivesh Mandalia
+maintainer: mail@shivesh.org
+
+executable day01
+ main-is: Main.hs
+
+ -- Modules included in this executable, other than Main.
+ -- other-modules:
+
+ -- LANGUAGE extensions used by modules in this package.
+ -- other-extensions:
+ build-depends: base ^>=4.16.4.0
+ hs-source-dirs: app
+ default-language: Haskell2010
diff --git a/day02/app/Main.hs b/day02/app/Main.hs
new file mode 100644
index 0000000..65ae4a0
--- /dev/null
+++ b/day02/app/Main.hs
@@ -0,0 +1,4 @@
+module Main where
+
+main :: IO ()
+main = putStrLn "Hello, Haskell!"
diff --git a/day02/day02.cabal b/day02/day02.cabal
new file mode 100644
index 0000000..5e52206
--- /dev/null
+++ b/day02/day02.cabal
@@ -0,0 +1,22 @@
+cabal-version: 2.4
+name: day02
+version: 0.1.0.0
+synopsis:
+
+-- A URL where users can report bugs.
+-- bug-reports:
+license: NONE
+author: Shivesh Mandalia
+maintainer: mail@shivesh.org
+
+executable day01
+ main-is: Main.hs
+
+ -- Modules included in this executable, other than Main.
+ -- other-modules:
+
+ -- LANGUAGE extensions used by modules in this package.
+ -- other-extensions:
+ build-depends: base ^>=4.16.4.0
+ hs-source-dirs: app
+ default-language: Haskell2010