mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 14:16:41 +03:00
web: fix stack ghci duplicate main error
This commit is contained in:
parent
8839136f02
commit
b4a72da355
@ -35,8 +35,8 @@ import Hledger.Cli hiding (progname,prognameandversion)
|
||||
import Hledger.Web.WebOptions
|
||||
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
hledgerWebMain :: IO ()
|
||||
hledgerWebMain = do
|
||||
opts <- getHledgerWebOpts
|
||||
when (debug_ (cliopts_ opts) > 0) $ printf "%s\n" prognameandversion >> printf "opts: %s\n" (show opts)
|
||||
runWith opts
|
||||
|
@ -1,9 +1,9 @@
|
||||
import Prelude (IO)
|
||||
|
||||
import qualified Hledger.Web.Main
|
||||
import Hledger.Web.Main
|
||||
|
||||
main :: IO ()
|
||||
main = Hledger.Web.Main.main
|
||||
main = hledgerWebMain
|
||||
|
||||
-- more standard yesod main, for reloading experiments
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user