web: fix compilation after recent lib changes

This commit is contained in:
Simon Michael 2014-07-03 09:37:02 -07:00
parent 16f8b78305
commit f30deee197
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ makeFoundation conf = do
getApplicationDev :: IO (Int, Application)
getApplicationDev = do
f <- journalFilePathFromOpts defcliopts
j <- either error' id `fmap` readJournalFile Nothing Nothing f
j <- either error' id `fmap` readJournalFile Nothing Nothing True f
defaultDevelApp loader (makeApplication defwebopts j)
where
loader = Yesod.Default.Config.loadConfig (configSettings Development)

View File

@ -125,7 +125,7 @@ handleEdit = do
setMessage "No change"
redirect JournalR
else do
jE <- liftIO $ readJournal Nothing Nothing (Just journalpath) tnew
jE <- liftIO $ readJournal Nothing Nothing True (Just journalpath) tnew
either
(\e -> do
setMessage $ toHtml e

View File

@ -49,7 +49,7 @@ runWith opts
withJournalDo' :: WebOpts -> (WebOpts -> Journal -> IO ()) -> IO ()
withJournalDo' opts cmd = do
journalFilePathFromOpts (cliopts_ opts) >>= readJournalFile Nothing Nothing >>=
journalFilePathFromOpts (cliopts_ opts) >>= readJournalFile Nothing Nothing True >>=
either error' (cmd opts . journalApplyAliases (aliasesFromOpts $ cliopts_ opts))
-- | The web command.