putChar
Write a character to the standard output device
putChar is implemented as
hPutChar
stdout.
This operation may fail with the same errors as
hPutChar.
Examples
Note that the following do not put a newline.
>>> putChar 'x'
x
>>> putChar '\0042'
*
hedgehog Hedgehog.Internal.Prelude,
base-compat Prelude.Compat,
base-prelude BasePrelude,
numeric-prelude NumericPrelude NumericPrelude.Base,
Cabal-syntax Distribution.Compat.Prelude,
numhask NumHask.Prelude,
github GitHub.Internal.Prelude,
ghc-lib-parser GHC.Prelude.Basic,
prelude-compat Prelude2010,
pathtype System.Path.IO,
dimensional Numeric.Units.Dimensional.Prelude,
haxl Haxl.Prelude,
rebase Rebase.Prelude,
hledger Hledger.Cli.Script,
mixed-types-num Numeric.MixedTypes.PreludeHiding,
xmonad-contrib XMonad.Config.Prime,
constrained-categories Control.Category.Constrained.Prelude Control.Category.Hask,
copilot-language Copilot.Language.Prelude,
LambdaHack Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
faktory Faktory.Prelude,
vcr Imports,
yesod-paginator Yesod.Paginator.Prelude,
distribution-opensuse OpenSuse.Prelude,
hledger-web Hledger.Web.Import,
termonad Termonad.Prelude Write a character to the standard output device (same as
hPutChar stdout).
Write a character to stdout
Uses system locale settings
Insert a character into a buffer specified by the file
Print a single character.
Write a character using UTF-8 encoding.
Write a character using UTF-8 encoding.
Encode a character stream to Utf8 and write it to standard output.
putChars = Stdio.putBytes . Unicode.encodeUtf8
Pre-release
Computation
hPutChar hdl ch writes the character
ch to the file or channel managed by
hdl. Characters
may be buffered if buffering is enabled for
hdl.
This operation may fail with:
Reads one character of input. Ignores non-printable characters.
When using terminal-style interaction, the character will be read
without waiting for a newline.
When using file-style interaction, a newline will be read if it is
immediately available after the input character.
Computation
hPutChar hdl ch writes the character
ch to the file or channel managed by
hdl. Characters
may be buffered if buffering is enabled for
hdl.
This operation may fail with:
Methods for parsing textual monoid inputs