From 932e96b310eb114611c5205a942d97e1c71fc596 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 8 May 2026 18:26:55 +0100 Subject: Test http parser somewhat --- tirclogv.cabal | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'tirclogv.cabal') diff --git a/tirclogv.cabal b/tirclogv.cabal index c212830..cf073b0 100644 --- a/tirclogv.cabal +++ b/tirclogv.cabal @@ -6,7 +6,17 @@ maintainer: Tom Smeding license: BSD-3-Clause build-type: Simple +common common + default-language: Haskell2010 + default-extensions: + ImportQualifiedPost + LambdaCase + MultiWayIf + TypeApplications + TupleSections + executable tirclogv + import: common main-is: Main.hs other-modules: AtomicPrint @@ -38,16 +48,10 @@ executable tirclogv vector hs-source-dirs: src c-sources: cbits/mmap.c - default-language: Haskell2010 - default-extensions: - ImportQualifiedPost - LambdaCase - MultiWayIf - TypeApplications - TupleSections ghc-options: -Wall -threaded library mini-http-server + import: common exposed-modules: Network.HTTP.Server.Mini Network.HTTP.Server.Mini.URI @@ -65,20 +69,26 @@ library mini-http-server transformers, stm hs-source-dirs: mini-http-server - default-language: Haskell2010 - default-extensions: - ImportQualifiedPost - LambdaCase - MultiWayIf ghc-options: -Wall -executable mini-http-server-test - main-is: mini-http/Main.hs +test-suite server-test + import: common + type: exitcode-stdio-1.0 + main-is: Main.hs + build-depends: + base, + mini-http-server, + bytestring, + hedgehog, + transformers + hs-source-dirs: server-test + ghc-options: -Wall + +executable echo-server + import: common + main-is: mini-http-server/Main.hs build-depends: base, mini-http-server, bytestring - default-language: Haskell2010 - default-extensions: - ImportQualifiedPost ghc-options: -Wall -- cgit v1.3.1