toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

ToyLib.ShowBSB

Description

Show with bytestring Builder.

It's good for both performance and monad transformers.

Synopsis

Documentation

putBSB :: MonadIO m => Builder -> m () #

putLnBSB :: MonadIO m => Builder -> m () #

class ShowBSB a where #

Show as a bytestring builder.

Minimal complete definition

Nothing

Methods

showBSB :: a -> Builder #

default showBSB :: Show a => a -> Builder #

Instances

Instances details
ShowBSB Builder # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Builder -> Builder #

ShowBSB ByteString # 
Instance details

Defined in ToyLib.ShowBSB

ShowBSB String # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: String -> Builder #

ShowBSB Integer # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Integer -> Builder #

ShowBSB Char # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Char -> Builder #

ShowBSB Double # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Double -> Builder #

ShowBSB Float # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Float -> Builder #

ShowBSB Int # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: Int -> Builder #

ShowBSB (ModInt p) # 
Instance details

Defined in Data.ModInt

Methods

showBSB :: ModInt p -> Builder #

(ShowBSB a, ShowBSB b) => ShowBSB (a, b) # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: (a, b) -> Builder #

(ShowBSB a, ShowBSB b, ShowBSB c) => ShowBSB (a, b, c) # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: (a, b, c) -> Builder #

(ShowBSB a, ShowBSB b, ShowBSB c, ShowBSB d) => ShowBSB (a, b, c, d) # 
Instance details

Defined in ToyLib.ShowBSB

Methods

showBSB :: (a, b, c, d) -> Builder #

showLnBSB :: ShowBSB a => a -> Builder #

printBSB :: (ShowBSB a, MonadIO m) => a -> m () #

concatBSB :: (Vector v a, ShowBSB a) => v a -> Builder #

intersperseBSB :: (Vector v a, ShowBSB a) => Builder -> v a -> Builder #

intersperseWithBSB :: Vector v a => (a -> Builder) -> Builder -> v a -> Builder #

unwordsBSB :: (ShowBSB a, Vector v a) => v a -> Builder #

unlinesBSB :: (ShowBSB a, Vector v a) => v a -> Builder #

yn :: Bool -> String #

printYn :: MonadIO m => Bool -> m () #

printList :: (ShowBSB a, Unbox a, MonadIO m) => [a] -> m () #

putList :: (ShowBSB a, Unbox a, MonadIO m) => [a] -> m () #

printVec :: (ShowBSB a, Vector v a, MonadIO m) => v a -> m () #

putVec :: (ShowBSB a, Vector v a, MonadIO m) => v a -> m () #