Module

Effect.Console

#log

log :: String -> Effect Unit

Write a message to the console.

#logShow

logShow :: forall a. Show a => a -> Effect Unit

Write a value to the console, using its Show instance to produce a String.

#warn

warn :: String -> Effect Unit

Write an warning to the console.

#warnShow

warnShow :: forall a. Show a => a -> Effect Unit

Write an warning value to the console, using its Show instance to produce a String.

#error

error :: String -> Effect Unit

Write an error to the console.

#errorShow

errorShow :: forall a. Show a => a -> Effect Unit

Write an error value to the console, using its Show instance to produce a String.

#info

info :: String -> Effect Unit

Write an info message to the console.

#infoShow

infoShow :: forall a. Show a => a -> Effect Unit

Write an info value to the console, using its Show instance to produce a String.

#debug

debug :: String -> Effect Unit

Write an debug message to the console.

#debugShow

debugShow :: forall a. Show a => a -> Effect Unit

Write an debug value to the console, using its Show instance to produce a String.

#time

time :: String -> Effect Unit

Start a named timer.

#timeLog

timeLog :: String -> Effect Unit

Print the time since a named timer started in milliseconds.

#timeEnd

timeEnd :: String -> Effect Unit

Stop a named timer and print time since it started in milliseconds.

#clear

clear :: Effect Unit

Clears the console

#group

group :: String -> Effect Unit

Creates a new inline group in the console. This indents following console messages by an additional level, until groupEnd is called.

#groupCollapsed

groupCollapsed :: String -> Effect Unit

Same as group, but groups are collapsed by default.

#groupEnd

groupEnd :: Effect Unit

Exits the current inline group in the console.

#grouped

grouped :: forall a. String -> Effect a -> Effect a

Perform an effect within the context of an inline group in the console. Calls group and groupEnd before and after the effect, respectively.

Modules