Module

Bonsai.Debug

Package
purescript-bonsai
Repository
grmble/purescript-bonsai

Heaviliy inspirec by purescript-debug

These should have CONSOLE effect really.

#logObj Source

logObj :: forall a eff. String -> a -> Eff (console :: CONSOLE | eff) Unit

Log a message and object to the console.

#logJson Source

logJson :: forall a eff. String -> a -> Eff (console :: CONSOLE | eff) Unit

Log a message and JSON.stringify of object to the console.

#logJsonObj Source

logJsonObj :: forall a eff. String -> a -> Eff (console :: CONSOLE | eff) Unit

Log a message, JSON.stringify and the object to the console.

#StartTiming Source

newtype StartTiming

#startTiming Source

startTiming :: forall eff. Eff (console :: CONSOLE | eff) StartTiming

Obtain a start time for timing function execution

#logTiming Source

logTiming :: forall eff. String -> StartTiming -> Eff (console :: CONSOLE | eff) Unit

Log timing information

#debugTiming Source

debugTiming :: forall eff. Boolean -> String -> StartTiming -> Eff (console :: CONSOLE | eff) Unit

Log timing if in debug mode

#debugJsonObj Source

debugJsonObj :: forall a eff. Boolean -> String -> a -> Eff (console :: CONSOLE | eff) Unit

Log json obj if in debug mode