relude-0.1.1: Custom prelude from Kowainik

Safe HaskellTrustworthy
LanguageHaskell2010

Relude.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 # 
Instance details

Defined in Relude.Print

Methods

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

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

Print ByteString Source # 
Instance details

Defined in Relude.Print

Methods

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

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

Print Text Source # 
Instance details

Defined in Relude.Print

Methods

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

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

Print Text Source # 
Instance details

Defined in Relude.Print

Methods

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

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

Print [Char] Source # 
Instance details

Defined in Relude.Print

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.