data SessionException = TimeoutException
| UnexpectedMessageException String FromServerMessage
| ReplayOutOfOrderException FromServerMessage [FromServerMessage]
+ | UnexpectedDiagnosticsException
+ | IncorrectApplyEditRequestException String
instance Exception SessionException
"Replay is out of order:\n" ++
"Received from server:" ++ show received ++ "\n" ++
"Expected one of: " ++ concatMap show expected
+ show UnexpectedDiagnosticsException = "Unexpectedly received diagnostics from the server."
+ show (IncorrectApplyEditRequestException msgStr) = "ApplyEditRequest didn't contain document, instead received:\n"
+ ++ msgStr
anySessionException :: SessionException -> Bool
anySessionException = const True
\ No newline at end of file