universum-1.2.0: Custom prelude used in Serokell

Safe HaskellTrustworthy
LanguageHaskell2010

Universum.Print

Description

Generalization of putStr and putStrLn functions.

Synopsis

Documentation

class Print a where Source #

Polymorfic over string and lifted to MonadIO printing functions.

Minimal complete definition

putStr, putStrLn

Methods

putStr :: MonadIO m => a -> m () Source #

putStrLn :: MonadIO m => a -> m () Source #

Instances

Print ByteString Source # 

Methods

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

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

Print ByteString Source # 

Methods

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

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

Print Text Source # 

Methods

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

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

Print Text Source # 

Methods

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

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

Print [Char] Source # 

Methods

putStr :: MonadIO m => [Char] -> m () Source #

putStrLn :: MonadIO m => [Char] -> m () Source #

print :: forall a m. (MonadIO m, Show a) => a -> m () Source #

Lifted version of print.

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

Specialized to Text version of putStr or forcing type inference.

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

Specialized to Text version of putStrLn or forcing type inference.

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

Specialized to Text version of putStr or forcing type inference.

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

Specialized to Text version of putStrLn or forcing type inference.