File: ByteString.hs

package info (click to toggle)
mighttpd2 4.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: haskell: 1,287; ansic: 44; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Program.Mighty.ByteString where

import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as BS

-- | Converting showalbe data to 'ByteString'.
bshow :: Show a => a -> ByteString
bshow = BS.pack . show

infixr 5 +++

-- | Appending two 'ByteString'.
(+++) :: ByteString -> ByteString -> ByteString
(+++) = BS.append