@@ -31,7 +31,7 @@ class
31 :: Proxy pathQueryRL
31 :: Proxy pathQueryRL
32 -> Proxy headersRL
32 -> Proxy headersRL
33 -> Proxy bodyFlag
33 -> Proxy bodyFlag
34− -> (Record pathQuery -> Record headers -> body -> Om {} errorRow result)
34+ -> (Record pathQuery -> Record headers -> body -> Om (Record ()) errorRow result)
37-- No path/query, no headers, no body
37-- No path/query, no headers, no body
@@ -44,8 +44,8 @@ instance
47− (Om {} errorRow result) where
47+ (Om (Record ()) errorRow result) where
48− buildClientFn _ _ _ f = f (unsafeCoerce {}) (unsafeCoerce {}) unit
48+ buildClientFn _ _ _ f = unsafeCoerce (f (unsafeCoerce {}) (unsafeCoerce {}) unit)
50-- No path/query, no headers, with body
50-- No path/query, no headers, with body
@@ -57,8 +57,8 @@ instance
60− (body -> Om {} errorRow result) where
60+ (body -> Om (Record ()) errorRow result) where
61− buildClientFn _ _ _ f = \b -> f (unsafeCoerce {}) (unsafeCoerce {}) b
61+ buildClientFn _ _ _ f = unsafeCoerce (\b -> f (unsafeCoerce {}) (unsafeCoerce {}) b)
63-- No path/query, with headers, no body
63-- No path/query, with headers, no body
@@ -70,8 +70,8 @@ instance
73− (Record h -> Om {} errorRow result) where
73+ (Record h -> Om (Record ()) errorRow result) where
74− buildClientFn _ _ _ f = \hdrs -> f (unsafeCoerce {}) hdrs unit
74+ buildClientFn _ _ _ f = unsafeCoerce (\hdrs -> f (unsafeCoerce {}) hdrs unit)
76-- No path/query, with headers, with body
76-- No path/query, with headers, with body
@@ -83,8 +83,8 @@ instance
86− (Record h -> body -> Om {} errorRow result) where
86+ (Record h -> body -> Om (Record ()) errorRow result) where
87− buildClientFn _ _ _ f = \hdrs b -> f (unsafeCoerce {}) hdrs b
87+ buildClientFn _ _ _ f = unsafeCoerce (\hdrs b -> f (unsafeCoerce {}) hdrs b)
89-- With path/query, no headers, no body
89-- With path/query, no headers, no body
@@ -96,8 +96,8 @@ instance
99− (Record pq -> Om {} errorRow result) where
99+ (Record pq -> Om (Record ()) errorRow result) where
100− buildClientFn _ _ _ f = \pqr -> f pqr (unsafeCoerce {}) unit
100+ buildClientFn _ _ _ f = unsafeCoerce (\pqr -> f pqr (unsafeCoerce {}) unit)
102-- With path/query, no headers, with body
102-- With path/query, no headers, with body
@@ -109,8 +109,8 @@ instance
112− (Record pq -> body -> Om {} errorRow result) where
112+ (Record pq -> body -> Om (Record ()) errorRow result) where
113− buildClientFn _ _ _ f = \pqr b -> f pqr (unsafeCoerce {}) b
113+ buildClientFn _ _ _ f = unsafeCoerce (\pqr b -> f pqr (unsafeCoerce {}) b)
115-- With path/query, with headers, no body
115-- With path/query, with headers, no body
@@ -122,8 +122,8 @@ instance
125− (Record pq -> Record h -> Om {} errorRow result) where
125+ (Record pq -> Record h -> Om (Record ()) errorRow result) where
126− buildClientFn _ _ _ f = \pqr hdrs -> f pqr hdrs unit
126+ buildClientFn _ _ _ f = unsafeCoerce (\pqr hdrs -> f pqr hdrs unit)
128-- With path/query, with headers, with body
128-- With path/query, with headers, with body
@@ -135,5 +135,5 @@ instance
138− (Record pq -> Record h -> body -> Om {} errorRow result) where
138+ (Record pq -> Record h -> body -> Om (Record ()) errorRow result) where
139− buildClientFn _ _ _ f = f
139+ buildClientFn _ _ _ f = unsafeCoerce f