From 1611ec2ef1065b43de433208d1552f5966b23b95 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 16 Oct 2017 21:06:18 +1100 Subject: [PATCH] Take out the Hamlet newline configuration since it actually doesn't affect the output. Like, at all. --- src/Settings.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Settings.hs b/src/Settings.hs index c6de01a..6fa2626 100644 --- a/src/Settings.hs +++ b/src/Settings.hs @@ -19,9 +19,8 @@ import Data.Yaml (decodeEither') import Database.Persist.MySQL (MySQLConf (..)) import Language.Haskell.TH.Syntax (Exp, Name, Q) import Network.Wai.Handler.Warp (HostPreference) -import Text.Hamlet (HamletSettings(hamletNewlines), NewlineStyle(AlwaysNewlines), defaultHamletSettings) import Yesod.Default.Config2 (applyEnvValue, configSettingsYml) -import Yesod.Default.Util (WidgetFileSettings(wfsHamletSettings), widgetFileNoReload, +import Yesod.Default.Util (WidgetFileSettings, widgetFileNoReload, widgetFileReload) import qualified Database.MySQL.Base as MySQL @@ -124,7 +123,7 @@ instance FromJSON AppSettings where -- -- https://github.com/yesodweb/yesod/wiki/Overriding-widgetFile widgetFileSettings :: WidgetFileSettings -widgetFileSettings = def { wfsHamletSettings = defaultHamletSettings { hamletNewlines = AlwaysNewlines } } +widgetFileSettings = def -- | How static files should be combined. combineSettings :: CombineSettings