hsdev-0.3.1.3: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.Server.Message

Synopsis

Documentation

data Message a Source #

Message with id to link request and response

Constructors

Message 

Fields

Instances

Functor Message Source # 

Methods

fmap :: (a -> b) -> Message a -> Message b #

(<$) :: a -> Message b -> Message a #

Foldable Message Source # 

Methods

fold :: Monoid m => Message m -> m #

foldMap :: Monoid m => (a -> m) -> Message a -> m #

foldr :: (a -> b -> b) -> b -> Message a -> b #

foldr' :: (a -> b -> b) -> b -> Message a -> b #

foldl :: (b -> a -> b) -> b -> Message a -> b #

foldl' :: (b -> a -> b) -> b -> Message a -> b #

foldr1 :: (a -> a -> a) -> Message a -> a #

foldl1 :: (a -> a -> a) -> Message a -> a #

toList :: Message a -> [a] #

null :: Message a -> Bool #

length :: Message a -> Int #

elem :: Eq a => a -> Message a -> Bool #

maximum :: Ord a => Message a -> a #

minimum :: Ord a => Message a -> a #

sum :: Num a => Message a -> a #

product :: Num a => Message a -> a #

Traversable Message Source # 

Methods

traverse :: Applicative f => (a -> f b) -> Message a -> f (Message b) #

sequenceA :: Applicative f => Message (f a) -> f (Message a) #

mapM :: Monad m => (a -> m b) -> Message a -> m (Message b) #

sequence :: Monad m => Message (m a) -> m (Message a) #

Eq a => Eq (Message a) Source # 

Methods

(==) :: Message a -> Message a -> Bool #

(/=) :: Message a -> Message a -> Bool #

Ord a => Ord (Message a) Source # 

Methods

compare :: Message a -> Message a -> Ordering #

(<) :: Message a -> Message a -> Bool #

(<=) :: Message a -> Message a -> Bool #

(>) :: Message a -> Message a -> Bool #

(>=) :: Message a -> Message a -> Bool #

max :: Message a -> Message a -> Message a #

min :: Message a -> Message a -> Message a #

Show a => Show (Message a) Source # 

Methods

showsPrec :: Int -> Message a -> ShowS #

show :: Message a -> String #

showList :: [Message a] -> ShowS #

ToJSON a => ToJSON (Message a) Source # 
FromJSON a => FromJSON (Message a) Source # 

message :: forall a a. Lens (Message a) (Message a) a a Source #

messagesById :: Maybe String -> [Message a] -> [a] Source #

Get messages by id

decodeMessage :: FromJSON a => ByteString -> Either (Msg String) (Msg (Message a)) Source #

Decode lisp or json request