web: fix compilation after recent lib changes
This commit is contained in:
		
							parent
							
								
									16f8b78305
								
							
						
					
					
						commit
						f30deee197
					
				| @ -77,7 +77,7 @@ makeFoundation conf = do | |||||||
| getApplicationDev :: IO (Int, Application) | getApplicationDev :: IO (Int, Application) | ||||||
| getApplicationDev = do | getApplicationDev = do | ||||||
|   f <- journalFilePathFromOpts defcliopts |   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) |   defaultDevelApp loader (makeApplication defwebopts j) | ||||||
|   where |   where | ||||||
|     loader = Yesod.Default.Config.loadConfig (configSettings Development) |     loader = Yesod.Default.Config.loadConfig (configSettings Development) | ||||||
|  | |||||||
| @ -125,7 +125,7 @@ handleEdit = do | |||||||
|        setMessage "No change" |        setMessage "No change" | ||||||
|        redirect JournalR |        redirect JournalR | ||||||
|      else do |      else do | ||||||
|       jE <- liftIO $ readJournal Nothing Nothing (Just journalpath) tnew |       jE <- liftIO $ readJournal Nothing Nothing True (Just journalpath) tnew | ||||||
|       either |       either | ||||||
|        (\e -> do |        (\e -> do | ||||||
|           setMessage $ toHtml e |           setMessage $ toHtml e | ||||||
|  | |||||||
| @ -49,7 +49,7 @@ runWith opts | |||||||
| 
 | 
 | ||||||
| withJournalDo' :: WebOpts -> (WebOpts -> Journal -> IO ()) -> IO () | withJournalDo' :: WebOpts -> (WebOpts -> Journal -> IO ()) -> IO () | ||||||
| withJournalDo' opts cmd = do | 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)) |     either error' (cmd opts . journalApplyAliases (aliasesFromOpts $ cliopts_ opts)) | ||||||
| 
 | 
 | ||||||
| -- | The web command. | -- | The web command. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user