okapi-0.1.0.1: A microframework based on monadic parsing
Safe HaskellNone
LanguageHaskell2010

Okapi.EventSource

Documentation

class ToSSE a where Source #

Methods

toSSE :: a -> Event Source #

data Event Source #

Instances

Instances details
Eq Event Source # 
Instance details

Defined in Okapi.EventSource

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Show Event Source # 
Instance details

Defined in Okapi.EventSource

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

sendValue :: ToSSE a => EventSource -> a -> IO () Source #