MicroHs-0.17.4.0 / tests / BSCompress.hs
module BSCompress whereimport System.IO.Serializeimport qualified Data.ByteString as BSsomeText :: StringsomeText = unlines $ replicate 10 "hello, cruel world!"main :: IO ()main = do print $ length someText -- force evaluation bs <- writeSerializedCompressedBS someText print bs print (BS.length bs) txt <- readSerializedBS bs print $ someText == txt