Module

Bonsai.Debug

Package
purescript-bonsai
Repository
grmble/purescript-bonsai

Heaviliy inspirec by purescript-debug

#StartTiming Source

newtype StartTiming

#debugJsonObj Source

debugJsonObj :: forall a eff. Boolean -> String -> a -> Eff (bonsai :: BONSAI | eff) Unit

Log json obj if in debug mode

#debugTiming Source

debugTiming :: forall eff. Boolean -> String -> StartTiming -> Eff (bonsai :: BONSAI | eff) Unit

Log timing if in debug mode

#logObj Source

logObj :: forall a eff. String -> a -> Eff (bonsai :: BONSAI | eff) Unit

Log a message and object to the console.

#logJson Source

logJson :: forall a eff. String -> a -> Eff (bonsai :: BONSAI | eff) Unit

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

#logJsonObj Source

logJsonObj :: forall a eff. String -> a -> Eff (bonsai :: BONSAI | eff) Unit

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

#logTiming Source

logTiming :: forall eff. String -> StartTiming -> Eff (bonsai :: BONSAI | eff) Unit

Log timing information

#startTiming Source

startTiming :: forall eff. Eff (bonsai :: BONSAI | eff) StartTiming

Obtain a start time for timing function execution