Initial commit

This commit is contained in:
Alexander Kobjolke 2023-11-29 21:29:32 +01:00
commit cf2af11b6b
23 changed files with 3988 additions and 0 deletions

80
package.yaml Normal file
View file

@ -0,0 +1,80 @@
name: aoc
version: 0.0.1.0
license: MIT
author: "Alexander Kobjolke"
maintainer: "alex@jakalx.net"
copyright: "Alexander Kobjolke 2023"
description: "Advent-Of-Code"
extra-source-files:
- README.org
dependencies:
- name: base
mixin:
- hiding (Prelude)
- name: relude
mixin:
- (Relude as Prelude)
- containers
- text
- megaparsec
ghc-options:
- -Weverything
- -Wno-implicit-prelude
- -Wno-missing-import-lists # Requires explicit imports of _every_ function (e.g. $); too strict
- -Wno-missing-kind-signatures
- -Wno-missed-specialisations # When GHC cant specialize a polymorphic function. No big deal and requires fixing underlying libraries to solve.
- -Wno-all-missed-specialisations # See missed-specialisations
- -Wno-unsafe # Dont use Safe Haskell warnings
- -Wno-safe # Dont use Safe Haskell warnings
- -Wno-missing-safe-haskell-mode # Dont use Safe Haskell warnings
- -Wno-missing-local-signatures # Warning for polymorphic local bindings; nothing wrong with those.
- -Wno-monomorphism-restriction # Dont warn if the monomorphism restriction is used
- -Wno-prepositive-qualified-module
- -fdefer-typed-holes
- -Wno-unused-packages
default-extensions:
- BlockArguments
- OverloadedStrings
- ImportQualifiedPost
- DerivingStrategies
library:
source-dirs: src
verbatim:
default-language: GHC2021
executables:
aoc:
source-dirs: app
main: aoc.hs
dependencies:
- aoc
verbatim:
default-language: GHC2021
tests:
spec:
cpp-options: -DTEST
main: Spec.hs
source-dirs:
- test/spec
dependencies:
- aoc
- hspec
- QuickCheck
- quickcheck-instances
build-tools: hspec-discover
verbatim:
default-language: GHC2021
doctest:
main: Doctest.hs
dependencies:
- process
source-dirs:
- test/doctest
build-tools: doctest