fix hledger-web build error

This commit is contained in:
Simon Michael 2011-09-27 16:29:43 +00:00
parent 5ccfb9cf7a
commit 6f0f1acf7e

View File

@ -516,7 +516,7 @@ handleAdd = do
Right t -> do
let t' = txnTieKnot t -- XXX move into balanceTransaction
liftIO $ do ensureJournalFile journalpath
appendToJournalFile journalpath $ showTransaction t'
appendToJournalFileOrStdout journalpath $ showTransaction t'
-- setMessage $ toHtml $ (printf "Added transaction:\n%s" (show t') :: String)
setMessage [$hamlet|<span>Added transaction:<small><pre>#{chomp $ show t'}</pre></small>|]
redirectParams RedirectTemporary RegisterR [("add","1")]