summaryrefslogtreecommitdiff
path: root/walint.cabal
diff options
context:
space:
mode:
authorstuebinm2022-02-01 00:30:13 +0100
committerstuebinm2022-02-01 00:30:13 +0100
commit2ce9a23fe7de72f4c8bf33a8c26f555cf08f8715 (patch)
tree5a497a064c500c30dc1e8d696cda1ca83bb3a58a /walint.cabal
parent868194be1f8da4d434498247dea715c2aa5ff869 (diff)
basic server setup (using servant)
adds a very basic http server that can be sent links to repositories & will download & lint them, then answer the request with the lints. Should probably do this in a non-blocking way …
Diffstat (limited to 'walint.cabal')
-rw-r--r--walint.cabal36
1 files changed, 34 insertions, 2 deletions
diff --git a/walint.cabal b/walint.cabal
index 34737d3..85e62c5 100644
--- a/walint.cabal
+++ b/walint.cabal
@@ -57,6 +57,40 @@ library
, witherable
default-language: Haskell2010
+executable server
+ main-is: Main.hs
+ other-modules:
+ Git
+ Serverconfig
+ Paths_walint
+ hs-source-dirs:
+ server
+ ghc-options: -Wall -Wno-name-shadowing
+ build-depends:
+ aeson
+ , base
+ , base-compat
+ , bytestring
+ , cli-extras
+ , cli-git
+ , directory
+ , extra
+ , filepath
+ , http-media
+ , logging-effect
+ , mtl
+ , process
+ , servant
+ , servant-server
+ , string-conversions
+ , text
+ , time
+ , uuid
+ , wai
+ , walint
+ , warp
+ default-language: Haskell2010
+
executable walint
main-is: Main.hs
other-modules:
@@ -65,8 +99,6 @@ executable walint
hs-source-dirs:
src
ghc-options: -Wall -Wno-name-shadowing
- build-tool-depends:
- hspec-discover:hspec-discover
build-depends:
aeson
, aeson-pretty