Flake & cabal setup
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
cabal-version: 3.4
|
||||
|
||||
name: yore
|
||||
version: 0
|
||||
author: Paul Brinkmeier
|
||||
maintainer: hallo@pbrinkmeier.de
|
||||
copyright: 2023 Paul Brinkmeier
|
||||
license: MIT
|
||||
license-file: LICENSE
|
||||
build-type: Simple
|
||||
extra-source-files:
|
||||
README.md
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://git.pbrinkmeier.de/paul/yore
|
||||
|
||||
common shared-options
|
||||
ghc-options:
|
||||
-Wall
|
||||
-Wcompat
|
||||
-Widentities
|
||||
-Wincomplete-record-updates
|
||||
-Wincomplete-uni-patterns
|
||||
-Wmissing-export-lists
|
||||
-Wmissing-home-modules
|
||||
-Wpartial-fields
|
||||
-Wredundant-constraints
|
||||
default-language: GHC2021
|
||||
|
||||
library
|
||||
import: shared-options
|
||||
exposed-modules:
|
||||
Yore.DB
|
||||
, Yore.Repl
|
||||
hs-source-dirs:
|
||||
src
|
||||
build-depends:
|
||||
base >=4.18 && <5
|
||||
, opium
|
||||
, postgresql-libpq
|
||||
|
||||
executable yore
|
||||
import: shared-options
|
||||
main-is: Main.hs
|
||||
hs-source-dirs:
|
||||
app
|
||||
ghc-options:
|
||||
-threaded
|
||||
-rtsopts
|
||||
-with-rtsopts=-N
|
||||
-ghci-script=.ghci
|
||||
build-depends:
|
||||
yore
|
||||
, base >=4.18 && <5
|
||||
, blaze-html
|
||||
, bytestring
|
||||
, http-media
|
||||
, opium
|
||||
, postgresql-libpq
|
||||
, servant-server
|
||||
, text
|
||||
, wai
|
||||
, warp
|
||||
Reference in New Issue
Block a user