summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorHannes Schulze <contact@haschu.me>2026-10-03 22:52:15 +0200
committerHannes Schulze <contact@haschu.me>2026-10-03 22:52:15 +0200
commit0bffdaf882a9ecdae7887ac59223ed489c96dc64 (patch)
tree53c9393820018f55c76fbf54aa56803dbeb65ab7 /cgi
parent0d43caf82404abc610a56520bfe7ef15559ce2c5 (diff)
routing
Diffstat (limited to 'cgi')
-rw-r--r--cgi/index.hs22
1 files changed, 0 insertions, 22 deletions
diff --git a/cgi/index.hs b/cgi/index.hs
deleted file mode 100644
index c01e79d..0000000
--- a/cgi/index.hs
+++ /dev/null
@@ -1,22 +0,0 @@
-{-# LANGUAGE OverloadedStrings #-}
-
-import Settlr.Storage
-import Network.CGI (runCGI, handleErrors, CGIResult, CGI, outputFPS)
-import Text.Blaze.Html5 (Html, (!))
-import qualified Text.Blaze.Html5 as H
-import qualified Text.Blaze.Html5.Attributes as A
-import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
-
-page :: Html
-page = H.docTypeHtml $ do
- H.head $ do
- H.title "Test"
- H.meta ! A.charset "utf-8"
- H.body $ do
- H.p "Hello, world!"
-
-cgiMain :: CGI CGIResult
-cgiMain = outputFPS $ renderHtml page
-
-main :: IO ()
-main = runCGI (handleErrors cgiMain)