relude-0.6.0.0: Custom prelude from Kowainik
Copyright(c) 2016 Stephen Diehl
(c) 2016-2018 Serokell
(c) 2018-2019 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellTrustworthy
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!

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

Lifted version of putStrLn.

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

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

Lifted version of putStr.

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

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

Lifted version of putStrLn.

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