diff --git a/.gitignore b/.gitignore index 432d932..f2fc71b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dist-newstyle -.direnv \ No newline at end of file +.direnv +*.cabal \ No newline at end of file diff --git a/numbersquare.cabal b/numbersquare.cabal deleted file mode 100644 index 47f5833..0000000 --- a/numbersquare.cabal +++ /dev/null @@ -1,24 +0,0 @@ -cabal-version: 3.0 -name: numbersquare - -version: 0.1.0.0 - -license: BSD-3-Clause -license-file: LICENSE -author: sid -category: Game -build-type: Simple - -extra-doc-files: CHANGELOG.md - -common warnings - ghc-options: -Wall - -executable numbersquare - import: warnings - - main-is: Main.hs - - build-depends: base ^>=4.20.2.0 - hs-source-dirs: app - default-language: Haskell2010 diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..34028cc --- /dev/null +++ b/package.yaml @@ -0,0 +1,36 @@ +name: numbersquare +version: "0.1.0" +category: Games +synopsis: "a game where you number square" +description: "a game where you number square" +license: BSD3 +author: skulk + +ghc-options: "-Wall" + +dependencies: + - "base == 4.*" + - random + - array + - text + +library: + source-dirs: + - src + +executable: + source-dirs: + - app + main: Main.hs + +tests: + spec: + main: "Spec.hs" + ghc-options: "-threaded -O0" + source-dirs: + - src + - test + + dependencies: + - hspec >= 2.1.8 + - QuickCheck diff --git a/shell.nix b/shell.nix index bddc07b..ebe7263 100644 --- a/shell.nix +++ b/shell.nix @@ -16,6 +16,7 @@ haskellPackages.developPackage { fourmolu haskell-language-server cabal-install + hpack ghcid cabal-fmt ]