Skip to content

Instantly share code, notes, and snippets.

View raimohanska's full-sized avatar

Juha Paananen raimohanska

View GitHub Profile
@raimohanska
raimohanska / ByteStringHelper.hs
Created November 8, 2011 08:29
Haskell Data.ByteString <-> String conversion helper
module ByteStringHelper where
import Data.ByteString as B
import Data.String
unpack :: B.ByteString -> String
unpack = read . show
pack :: String -> B.ByteString
pack = read . show