File: ByteString.hs

package info (click to toggle)
mighttpd2 4.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: haskell: 1,382; makefile: 4; sh: 3
file content (14 lines) | stat: -rw-r--r-- 341 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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