universum-1.7.1: Custom prelude used in Serokell

Copyright(c) Justus Adam 2018
LicenseMIT
MaintainerSerokell <hi@serokell.io>
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Universum.Print.Internal

Description

You may import this module to define your own, custom instances of Print. Be advised however that this module is an internal API and may be subject to change even for minor version increments.

Synopsis

Documentation

class Print a where Source #

Support class to overload writing of string like values.

Methods

hPutStr :: Handle -> a -> IO () Source #

hPutStrLn :: Handle -> a -> IO () Source #

Instances
Print ByteString Source # 
Instance details

Defined in Universum.Print.Internal

Print ByteString Source # 
Instance details

Defined in Universum.Print.Internal

Print Text Source # 
Instance details

Defined in Universum.Print.Internal

Methods

hPutStr :: Handle -> Text -> IO () Source #

hPutStrLn :: Handle -> Text -> IO () Source #

Print Text Source # 
Instance details

Defined in Universum.Print.Internal

Methods

hPutStr :: Handle -> Text -> IO () Source #

hPutStrLn :: Handle -> Text -> IO () Source #

Print [Char] Source # 
Instance details

Defined in Universum.Print.Internal

Methods

hPutStr :: Handle -> [Char] -> IO () Source #

hPutStrLn :: Handle -> [Char] -> IO () Source #