From cf488a0daae29fda001d7e10b5f5b55ee756030f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Sun, 31 Mar 2024 13:38:15 -0500 Subject: [PATCH] format --- app/Main.hs | 7 ++++--- website-builder.cabal | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index 10b1f4b..c45ba1e 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -10,7 +10,7 @@ import Data.Aeson (FromJSON, ToJSON, eitherDecodeFileStrict) import Hakyll import Main.Utf8 import System.Exit (exitFailure) -import Text.Pandoc.Highlighting (Style, zenburn, styleToCss) +import Text.Pandoc.Highlighting (Style, styleToCss, zenburn) import Text.Pandoc.Options (WriterOptions (..)) import UnliftIO.Directory (doesDirectoryExist, doesFileExist) @@ -137,8 +137,9 @@ main = do -------------------------------------------------------------------------------- postCtx :: Context String postCtx = - dateField "date" "%B %e, %Y" - `mappend` defaultContext + dateField "isodate" "%Y-%m-%d" + <> dateField "date" "%B %e, %Y" + <> defaultContext instance HasCodec FeedConfiguration where codec = diff --git a/website-builder.cabal b/website-builder.cabal index 90a2c72..cdfc0d2 100644 --- a/website-builder.cabal +++ b/website-builder.cabal @@ -14,10 +14,12 @@ executable website-builder , unliftio , with-utf8 - ghc-options: -threaded -O1 -rtsopts -with-rtsopts=-N +RTS -H2G -A32M -RTS - -Wall -Werror -Wcompat -fwarn-redundant-constraints + ghc-options: + -threaded -O1 -rtsopts -with-rtsopts=-N +RTS -H2G -A32M -RTS -Wall + -Werror -Wcompat -fwarn-redundant-constraints -fwarn-incomplete-uni-patterns -fwarn-tabs -fwarn-star-is-type -fwarn-unused-type-patterns -fwarn-incomplete-record-updates -fwarn-identities -fprint-potential-instances -fwarn-unused-packages -fwarn-missing-kind-signatures + default-language: Haskell2010 -- 2.45.2