@@ -146,14 +146,14 @@ signals =
149− [ "send" -:: signalOf (request a) -> signalOf (response string)
149+ [ "send" -:: signalOf (request a) ==> signalOf (response string)
150− , "sendGet" -:: signalOf string -> signalOf (response string)
150+ , "sendGet" -:: signalOf string ==> signalOf (response string)
151 , "get" -: string ==> request string
151 , "get" -: string ==> request string
152 , "post" -: string ==> string ==> request string
152 , "post" -: string ==> string ==> request string
153 , "request" -: string ==> string ==> string ==> listOf (pairOf string) ==> request string
153 , "request" -: string ==> string ==> string ==> listOf (pairOf string) ==> request string
154 , "Waiting" -:: response a
154 , "Waiting" -:: response a
155 , "Failure" -:: int ==> string ==> response a
155 , "Failure" -:: int ==> string ==> response a
156− , "Success" -:: a -> response a ]
156+ , "Success" -:: a ==> response a ]
157 where request t = ADT "Request" [t]
157 where request t = ADT "Request" [t]
158 response t = ADT "Response" [t]
158 response t = ADT "Response" [t]
@@ -211,14 +211,13 @@ bools =
211 , Forall [0,1] [ Context "`compare'" $ VarT 0 :<: comparable ] (VarT 0 ==> VarT 0 ==> VarT 1) )
211 , Forall [0,1] [ Context "`compare'" $ VarT 0 :<: comparable ] (VarT 0 ==> VarT 0 ==> VarT 1) )
214−chars =
214+chars = classify ++ convert1 ++ convert2
215− [ hasType (char ==> bool)
215+ where classify = hasType (char ==> bool)
216− ["isDigit","isOctDigit","isHexDigit","isUpper","isLower"]
216+ ["isDigit","isOctDigit","isHexDigit","isUpper","isLower"]
217− , hasType (char ==> char)
217+ convert1 = hasType (char ==> char)
218− ["toUpper","toLower","toLocaleUpper","toLocaleLower"]
218+ ["toUpper","toLower","toLocaleUpper","toLocaleLower"]
219− , "toCode" -: char ==> int
220− , "fromCode" -: int ==> char
219+ convert2 = [ "toCode" -: char ==> int, "fromCode" -: int ==> char ]
223-------- Polymorphic Functions --------
222-------- Polymorphic Functions --------