mohws-0.2.1.6: Modular Haskell Web Server

Copyright2009 Henning Thielemann
Safe HaskellNone
LanguageHaskell98

Network.MoHWS.Stream

Description

Unified interface to String and ByteStrings.

Documentation

class Monoid stream => C stream where Source #

Methods

fromString :: Int -> String -> stream Source #

toString :: stream -> String Source #

isEmpty :: stream -> Bool Source #

length :: stream -> Integer Source #

isPrefixOf :: stream -> stream -> Bool Source #

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

drop :: Int -> stream -> stream Source #

read :: Handle -> Integer -> IO stream Source #

readAll :: Int -> Handle -> IO stream Source #

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

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

Instances
C ByteString Source # 
Instance details

Defined in Network.MoHWS.Stream

CharType char => C [char] Source # 
Instance details

Defined in Network.MoHWS.Stream

Methods

fromString :: Int -> String -> [char] Source #

toString :: [char] -> String Source #

isEmpty :: [char] -> Bool Source #

length :: [char] -> Integer Source #

isPrefixOf :: [char] -> [char] -> Bool Source #

break :: (Char -> Bool) -> [char] -> ([char], [char]) Source #

drop :: Int -> [char] -> [char] Source #

read :: Handle -> Integer -> IO [char] Source #

readAll :: Int -> Handle -> IO [char] Source #

write :: Handle -> [char] -> IO () Source #

writeChunked :: Int -> Handle -> [char] -> IO () Source #

class Eq char => CharType char where Source #

Minimal complete definition

fromChar, toChar

Methods

fromChar :: Char -> char Source #

toChar :: char -> Char Source #

Instances
CharType Char Source # 
Instance details

Defined in Network.MoHWS.Stream