Module

Effect.Console

Package
purescript-console
Repository
purescript/purescript-console

#log Source

log :: String -> Effect Unit

Write a message to the console.

#logShow Source

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

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

#warn Source

warn :: String -> Effect Unit

Write an warning to the console.

#warnShow Source

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

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

#error Source

error :: String -> Effect Unit

Write an error to the console.

#errorShow Source

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

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

#info Source

info :: String -> Effect Unit

Write an info message to the console.

#infoShow Source

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

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

#debug Source

debug :: String -> Effect Unit

Write an debug message to the console.

#debugShow Source

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

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

#time Source

time :: String -> Effect Unit

Start a named timer.

#timeLog Source

timeLog :: String -> Effect Unit

Print the time since a named timer started in milliseconds.

#timeEnd Source

timeEnd :: String -> Effect Unit

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

#clear Source

clear :: Effect Unit

Clears the console

#group Source

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 Source

groupCollapsed :: String -> Effect Unit

Same as group, but groups are collapsed by default.

#groupEnd Source

groupEnd :: Effect Unit

Exits the current inline group in the console.

#grouped Source

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.