minor cleanup

This commit is contained in:
Pagwin 2025-11-01 17:00:57 -04:00
parent 4893b40cc9
commit b346c399f5
No known key found for this signature in database
GPG key ID: 81137023740CA260
2 changed files with 12 additions and 4 deletions

9
app/HTML.hs Normal file
View file

@ -0,0 +1,9 @@
{-# LANGUAGE OverloadedStrings #-}
module HTML (compileToHTML) where
import Data.Text
import IR
compileToHTML :: Document -> Text
compileToHTML = const ""

View file

@ -148,8 +148,7 @@ rss =
-- Shake.putInfo $ "Built " <> target
readPost :: FilePath -> Action Post
readPost postPath = do
case FP.takeExtension postPath of
readPost postPath = case FP.takeExtension postPath of
".md" -> readMarkdownPost postPath
_ -> error $ "unknown file extension for file" <> postPath