blob: 99766e528d9bd49a6fa4e5aa11b35b030bd6e69e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{-|
Copyright: (c) Tom Smeding 2026
License: AGPL-3.0-or-later
-}
{-# 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)))
|