diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2026-05-08 19:26:10 +0200 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2026-05-08 19:26:10 +0200 |
| commit | 30d4ca02ea147089af994ea7d5f7941a4bbe94a7 (patch) | |
| tree | 9fd9086c74976f7851a7622756a20dcb6af91e18 /mini-http-server/Main.hs | |
| parent | ba9d7504080fb4e9adfb2d33290190e06d2f8773 (diff) | |
Rename mini-http to mini-http-server
And move Parser to Internal.Parser for test suite
Diffstat (limited to 'mini-http-server/Main.hs')
| -rw-r--r-- | mini-http-server/Main.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mini-http-server/Main.hs b/mini-http-server/Main.hs new file mode 100644 index 0000000..08e66c1 --- /dev/null +++ b/mini-http-server/Main.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE OverloadedStrings #-} +module Main where + +import Data.ByteString.Char8 qualified as BS8 + +import Network.HTTP.Server.Mini + + +main :: IO () +main = + run defaultSettings { setPort = 8000 } $ \req -> + return (responseBS status200 [("Content-Type", "text/plain")] (BS8.pack (show req))) |
