diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2026-05-08 19:26:55 +0200 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2026-05-08 19:26:55 +0200 |
| commit | 932e96b310eb114611c5205a942d97e1c71fc596 (patch) | |
| tree | 1b1205603d2f283dc00900062dc6ec99704affd8 /tirclogv.cabal | |
| parent | 30d4ca02ea147089af994ea7d5f7941a4bbe94a7 (diff) | |
Test http parser somewhat
Diffstat (limited to 'tirclogv.cabal')
| -rw-r--r-- | tirclogv.cabal | 44 |
1 files changed, 27 insertions, 17 deletions
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 |
