use hpack

This commit is contained in:
Sidharth Kulkarni 2026-05-02 11:38:52 -07:00
parent 9acab9344d
commit 75af92ca7c
Signed by: skulk
SSH key fingerprint: SHA256:Jby+S9d1WmwqnXIrngHgccYNHz+cYquxN1zm3ym3Kbg
4 changed files with 39 additions and 25 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
dist-newstyle
.direnv
*.cabal

View file

@ -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

36
package.yaml Normal file
View file

@ -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

View file

@ -16,6 +16,7 @@ haskellPackages.developPackage {
fourmolu
haskell-language-server
cabal-install
hpack
ghcid
cabal-fmt
]