mohws-0.2.1.1: Modular Haskell Web Server

Network.MoHWS.Stream

Description

Unified interface to String and ByteStrings.

Documentation

class Monoid stream => C stream whereSource

Methods

fromString :: Int -> String -> streamSource

toString :: stream -> StringSource

isEmpty :: stream -> BoolSource

length :: stream -> IntegerSource

isPrefixOf :: stream -> stream -> BoolSource

break :: (Char -> Bool) -> stream -> (stream, stream)Source

drop :: Int -> stream -> streamSource

read :: Handle -> Integer -> IO streamSource

readAll :: Int -> Handle -> IO streamSource

write :: Handle -> stream -> IO ()Source

writeChunked :: Int -> Handle -> stream -> IO ()Source

Instances

C ByteString 
CharType char => C [char] 

class Eq char => CharType char whereSource

Methods

fromChar :: Char -> charSource

toChar :: char -> CharSource

Instances