I see, polymorphic let bindings need a proper type sig
This commit is contained in:
parent
577ff7902c
commit
a8122405bf
@ -1,4 +1,3 @@
|
|||||||
{-# LANGUAGE NoMonomorphismRestriction #-} -- for dbgM
|
|
||||||
{-|
|
{-|
|
||||||
hledger - a ledger-compatible accounting tool.
|
hledger - a ledger-compatible accounting tool.
|
||||||
Copyright (c) 2007-2011 Simon Michael <simon@joyful.com>
|
Copyright (c) 2007-2011 Simon Michael <simon@joyful.com>
|
||||||
@ -187,10 +186,8 @@ main = do
|
|||||||
isNullCommand = null rawcmd
|
isNullCommand = null rawcmd
|
||||||
(argsbeforecmd, argsaftercmd') = break (==rawcmd) args
|
(argsbeforecmd, argsaftercmd') = break (==rawcmd) args
|
||||||
argsaftercmd = drop 1 argsaftercmd'
|
argsaftercmd = drop 1 argsaftercmd'
|
||||||
|
dbgM :: Show a => String -> a -> IO ()
|
||||||
dbglevel = 2
|
dbgM = dbgAtM 2
|
||||||
dbg = dbgAt dbglevel
|
|
||||||
dbgM = \a b -> dbg a b `seq` return () -- requires NoMonomorphismRestriction
|
|
||||||
|
|
||||||
dbgM "running" prognameandversion
|
dbgM "running" prognameandversion
|
||||||
dbgM "raw args" args
|
dbgM "raw args" args
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user