Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 625 Bytes

File metadata and controls

35 lines (21 loc) · 625 Bytes

Module Control.Monad.Eff.Console

CONSOLE

data CONSOLE :: !

The CONSOLE effect represents those computations which write to the console.

log

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

Write a message to the console.

error

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

Write an error to the console.

print

print :: forall a eff. (Show a) => a -> Eff (console :: CONSOLE | eff) Unit

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