yu-utils-0.1.1.0: Utils for Yu

Copyright(C) 2017-2018 Johann Lee <me@qinka.pro>
LicenseGPL3
Maintainerme@qinka.pro
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell2010

Yu.Import.ByteString

Contents

Description

The reexport of the bytestring

Synopsis

the reexported module

the methods

pack :: String -> ByteString #

O(n) Convert a String into a ByteString

For applications with large numbers of string literals, pack can be a bottleneck.

unpack :: ByteString -> [Char] #

O(n) Converts a ByteString to a String.

read Source #

Arguments

:: Read a 
=> ByteString

string

-> a

result

The read method for bytestring

show Source #

Arguments

:: Show a 
=> a

item

-> ByteString

result

The show method for bytestring