@@ -146,14 +146,14 @@ signals =
146146 ]
147147
148148http =
149− [ "send" -:: signalOf (request a) -> signalOf (response string)
150− , "sendGet" -:: signalOf string -> signalOf (response string)
149+ [ "send" -:: signalOf (request a) ==> signalOf (response string)
150+ , "sendGet" -:: signalOf string ==> signalOf (response string)
151151 , "get" -: string ==> request string
152152 , "post" -: string ==> string ==> request string
153153 , "request" -: string ==> string ==> string ==> listOf (pairOf string) ==> request string
154154 , "Waiting" -:: response a
155155 , "Failure" -:: int ==> string ==> response a
156− , "Success" -:: a -> response a ]
156+ , "Success" -:: a ==> response a ]
157157 where request t = ADT "Request" [t]
158158 response t = ADT "Response" [t]
159159
@@ -211,14 +211,13 @@ bools =
211211 , Forall [0,1] [ Context "`compare'" $ VarT 0 :<: comparable ] (VarT 0 ==> VarT 0 ==> VarT 1) )
212212 ]
213213
214−chars =
215− [ hasType (char ==> bool)
216− ["isDigit","isOctDigit","isHexDigit","isUpper","isLower"]
217− , hasType (char ==> char)
218− ["toUpper","toLower","toLocaleUpper","toLocaleLower"]
219− , "toCode" -: char ==> int
220− , "fromCode" -: int ==> char
221− ]
214+chars = classify ++ convert1 ++ convert2
215+ where classify = hasType (char ==> bool)
216+ ["isDigit","isOctDigit","isHexDigit","isUpper","isLower"]
217+ convert1 = hasType (char ==> char)
218+ ["toUpper","toLower","toLocaleUpper","toLocaleLower"]
219+ convert2 = [ "toCode" -: char ==> int, "fromCode" -: int ==> char ]
220+
222221
223222-------- Polymorphic Functions --------
224223