From b346c399f5966e012529c66bf5855e9731bcf15e Mon Sep 17 00:00:00 2001 From: Pagwin Date: Sat, 1 Nov 2025 17:00:57 -0400 Subject: [PATCH] minor cleanup --- app/HTML.hs | 9 +++++++++ app/Main.hs | 7 +++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 app/HTML.hs diff --git a/app/HTML.hs b/app/HTML.hs new file mode 100644 index 0000000..1a92e64 --- /dev/null +++ b/app/HTML.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE OverloadedStrings #-} + +module HTML (compileToHTML) where + +import Data.Text +import IR + +compileToHTML :: Document -> Text +compileToHTML = const "" diff --git a/app/Main.hs b/app/Main.hs index 0d5305b..e2c7b63 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -148,10 +148,9 @@ rss = -- Shake.putInfo $ "Built " <> target readPost :: FilePath -> Action Post -readPost postPath = do - case FP.takeExtension postPath of - ".md" -> readMarkdownPost postPath - _ -> error $ "unknown file extension for file" <> postPath +readPost postPath = case FP.takeExtension postPath of + ".md" -> readMarkdownPost postPath + _ -> error $ "unknown file extension for file" <> postPath readMarkdownPost :: FilePath -> Action Post readMarkdownPost postPath = do