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