relude-1.2.0.0: Safe, performant, user-friendly and lightweight Haskell Standard Library
Copyright(c) 2016 Stephen Diehl
(c) 2016-2018 Serokell
(c) 2018-2023 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellSafe
LanguageHaskell2010

Relude.Print

Description

Functions like putStr and putStrLn but for Text, LText, ByteString and LByteString.

Synopsis

Text & LText

putText :: MonadIO m => Text -> m () Source #

Lifted version of putStr.

>>> putText "Hello, world!"
Hello, world!

putTextLn :: MonadIO m => Text -> m () Source #

Lifted version of putStrLn.

>>> putTextLn "Hello, world!"
Hello, world!

putLText :: MonadIO m => LText -> m () Source #

Lifted version of putStr.

>>> putLText "Hello, world!"
Hello, world!

putLTextLn :: MonadIO m => LText -> m () Source #

Lifted version of putStrLn.

>>> putLTextLn "Hello, world!"
Hello, world!

ByteString & LByteString

putBS :: MonadIO m => ByteString -> m () Source #

Lifted version of putStr.

>>> putBS ("Hello, world!" :: ByteString)
Hello, world!

Since: 0.3.0

putBSLn :: MonadIO m => ByteString -> m () Source #

Lifted version of putStrLn.

>>> putBSLn ("Hello, world!" :: ByteString)
Hello, world!

Since: 0.3.0

putLBS :: MonadIO m => LByteString -> m () Source #

Lifted version of putStr.

>>> putLBS ("Hello, world!" :: LByteString)
Hello, world!

Since: 0.3.0

putLBSLn :: MonadIO m => LByteString -> m () Source #

Lifted version of putStrLn.

>>> putLBSLn ("Hello, world!" :: LByteString)
Hello, world!

Since: 0.3.0