From 2ce9a23fe7de72f4c8bf33a8c26f555cf08f8715 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 1 Feb 2022 00:30:13 +0100 Subject: 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 … --- walint.cabal | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'walint.cabal') 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 -- cgit v1.2.3