move stack templates for package.yaml support
This commit is contained in:
parent
32275aaa24
commit
6a79211bec
7 changed files with 131 additions and 32 deletions
5
2022/.gitignore
vendored
5
2022/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/input
|
input/
|
||||||
/.stack-work
|
.stack-work/
|
||||||
|
*~
|
||||||
|
|
|
@ -1,30 +1,61 @@
|
||||||
name: aoc
|
cabal-version: 1.12
|
||||||
version: 0.1.0.0
|
|
||||||
-- synopsis:
|
|
||||||
-- description:
|
|
||||||
homepage: https://github.com/sloanelybutsurely/aoc#readme
|
|
||||||
license: BSD3
|
|
||||||
license-file: LICENSE
|
|
||||||
author: Sloane Perrault
|
|
||||||
maintainer: sloane.perrault@gmail.com
|
|
||||||
copyright: none
|
|
||||||
category: puzzles
|
|
||||||
build-type: Simple
|
|
||||||
cabal-version: >=1.10
|
|
||||||
extra-source-files: README.md
|
|
||||||
CHANGELOG.md
|
|
||||||
|
|
||||||
executable aoc
|
-- This file has been generated from package.yaml by hpack version 0.35.0.
|
||||||
hs-source-dirs: src
|
--
|
||||||
main-is: Main.hs
|
-- see: https://github.com/sol/hpack
|
||||||
default-language: Haskell2010
|
|
||||||
build-depends: base >= 4.7 && < 5
|
name: aoc
|
||||||
ghc-options: -Wall
|
version: 0.1.0.0
|
||||||
-Wcompat
|
description: Please see the README on GitHub at <https://github.com/sloanelybutsurely/aoc#readme>
|
||||||
-Widentities
|
homepage: https://github.com/sloanelybutsurely/aoc#readme
|
||||||
-Wincomplete-record-updates
|
bug-reports: https://github.com/sloanelybutsurely/aoc/issues
|
||||||
-Wincomplete-uni-patterns
|
author: Sloane Perrault
|
||||||
-Wmissing-export-lists
|
maintainer: sloane.perrault@gmail.com
|
||||||
-Wmissing-home-modules
|
copyright: none
|
||||||
-Wpartial-fields
|
license: BSD3
|
||||||
-Wredundant-constraints
|
license-file: LICENSE
|
||||||
|
build-type: Simple
|
||||||
|
extra-source-files:
|
||||||
|
README.md
|
||||||
|
CHANGELOG.md
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/sloanelybutsurely/aoc
|
||||||
|
|
||||||
|
library
|
||||||
|
exposed-modules:
|
||||||
|
Lib
|
||||||
|
other-modules:
|
||||||
|
Paths_aoc
|
||||||
|
hs-source-dirs:
|
||||||
|
src
|
||||||
|
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
|
||||||
|
build-depends:
|
||||||
|
base >=4.7 && <5
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
executable aoc-exe
|
||||||
|
main-is: Main.hs
|
||||||
|
other-modules:
|
||||||
|
Paths_aoc
|
||||||
|
hs-source-dirs:
|
||||||
|
app
|
||||||
|
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
|
||||||
|
build-depends:
|
||||||
|
aoc
|
||||||
|
, base >=4.7 && <5
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
test-suite aoc-test
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: Spec.hs
|
||||||
|
other-modules:
|
||||||
|
Paths_aoc
|
||||||
|
hs-source-dirs:
|
||||||
|
test
|
||||||
|
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
|
||||||
|
build-depends:
|
||||||
|
aoc
|
||||||
|
, base >=4.7 && <5
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
59
2022/package.yaml
Normal file
59
2022/package.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
name: aoc
|
||||||
|
version: 0.1.0.0
|
||||||
|
github: "sloanelybutsurely/aoc"
|
||||||
|
license: BSD3
|
||||||
|
author: "Sloane Perrault"
|
||||||
|
maintainer: "sloane.perrault@gmail.com"
|
||||||
|
copyright: "none"
|
||||||
|
|
||||||
|
extra-source-files:
|
||||||
|
- README.md
|
||||||
|
- CHANGELOG.md
|
||||||
|
|
||||||
|
# Metadata used when publishing your package
|
||||||
|
# synopsis: Short description of your package
|
||||||
|
# category: puzzles
|
||||||
|
|
||||||
|
# To avoid duplicated efforts in documentation and dealing with the
|
||||||
|
# complications of embedding Haddock markup inside cabal files, it is
|
||||||
|
# common to point users to the README.md file.
|
||||||
|
description: Please see the README on GitHub at <https://github.com/sloanelybutsurely/aoc#readme>
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- base >= 4.7 && < 5
|
||||||
|
|
||||||
|
ghc-options:
|
||||||
|
- -Wall
|
||||||
|
- -Wcompat
|
||||||
|
- -Widentities
|
||||||
|
- -Wincomplete-record-updates
|
||||||
|
- -Wincomplete-uni-patterns
|
||||||
|
- -Wmissing-export-lists
|
||||||
|
- -Wmissing-home-modules
|
||||||
|
- -Wpartial-fields
|
||||||
|
- -Wredundant-constraints
|
||||||
|
|
||||||
|
library:
|
||||||
|
source-dirs: src
|
||||||
|
|
||||||
|
executables:
|
||||||
|
aoc-exe:
|
||||||
|
main: Main.hs
|
||||||
|
source-dirs: app
|
||||||
|
ghc-options:
|
||||||
|
- -threaded
|
||||||
|
- -rtsopts
|
||||||
|
- -with-rtsopts=-N
|
||||||
|
dependencies:
|
||||||
|
- aoc
|
||||||
|
|
||||||
|
tests:
|
||||||
|
aoc-test:
|
||||||
|
main: Spec.hs
|
||||||
|
source-dirs: test
|
||||||
|
ghc-options:
|
||||||
|
- -threaded
|
||||||
|
- -rtsopts
|
||||||
|
- -with-rtsopts=-N
|
||||||
|
dependencies:
|
||||||
|
- aoc
|
6
2022/src/Lib.hs
Normal file
6
2022/src/Lib.hs
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
module Lib
|
||||||
|
( someFunc
|
||||||
|
) where
|
||||||
|
|
||||||
|
someFunc :: IO ()
|
||||||
|
someFunc = putStrLn "someFunc"
|
2
2022/test/Spec.hs
Normal file
2
2022/test/Spec.hs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
main :: IO ()
|
||||||
|
main = putStrLn "Test suite not yet implemented"
|
Loading…
Reference in a new issue