@@ -31,7 +31,7 @@ class
3131 :: Proxy pathQueryRL
3232 -> Proxy headersRL
3333 -> Proxy bodyFlag
34− -> (Record pathQuery -> Record headers -> body -> Om {} errorRow result)
34+ -> (Record pathQuery -> Record headers -> body -> Om (Record ()) errorRow result)
3535 -> fn
3636
3737-- No path/query, no headers, no body
@@ -44,8 +44,8 @@ instance
4444 h
4545 errorRow
4646 result
47− (Om {} errorRow result) where
48− buildClientFn _ _ _ f = f (unsafeCoerce {}) (unsafeCoerce {}) unit
47+ (Om (Record ()) errorRow result) where
48+ buildClientFn _ _ _ f = unsafeCoerce (f (unsafeCoerce {}) (unsafeCoerce {}) unit)
4949
5050-- No path/query, no headers, with body
5151instance
@@ -57,8 +57,8 @@ instance
5757 h
5858 errorRow
5959 result
60− (body -> Om {} errorRow result) where
61− buildClientFn _ _ _ f = \b -> f (unsafeCoerce {}) (unsafeCoerce {}) b
60+ (body -> Om (Record ()) errorRow result) where
61+ buildClientFn _ _ _ f = unsafeCoerce (\b -> f (unsafeCoerce {}) (unsafeCoerce {}) b)
6262
6363-- No path/query, with headers, no body
6464instance
@@ -70,8 +70,8 @@ instance
7070 h
7171 errorRow
7272 result
73− (Record h -> Om {} errorRow result) where
74− buildClientFn _ _ _ f = \hdrs -> f (unsafeCoerce {}) hdrs unit
73+ (Record h -> Om (Record ()) errorRow result) where
74+ buildClientFn _ _ _ f = unsafeCoerce (\hdrs -> f (unsafeCoerce {}) hdrs unit)
7575
7676-- No path/query, with headers, with body
7777instance
@@ -83,8 +83,8 @@ instance
8383 h
8484 errorRow
8585 result
86− (Record h -> body -> Om {} errorRow result) where
87− buildClientFn _ _ _ f = \hdrs b -> f (unsafeCoerce {}) hdrs b
86+ (Record h -> body -> Om (Record ()) errorRow result) where
87+ buildClientFn _ _ _ f = unsafeCoerce (\hdrs b -> f (unsafeCoerce {}) hdrs b)
8888
8989-- With path/query, no headers, no body
9090instance
@@ -96,8 +96,8 @@ instance
9696 h
9797 errorRow
9898 result
99− (Record pq -> Om {} errorRow result) where
100− buildClientFn _ _ _ f = \pqr -> f pqr (unsafeCoerce {}) unit
99+ (Record pq -> Om (Record ()) errorRow result) where
100+ buildClientFn _ _ _ f = unsafeCoerce (\pqr -> f pqr (unsafeCoerce {}) unit)
101101
102102-- With path/query, no headers, with body
103103instance
@@ -109,8 +109,8 @@ instance
109109 h
110110 errorRow
111111 result
112− (Record pq -> body -> Om {} errorRow result) where
113− buildClientFn _ _ _ f = \pqr b -> f pqr (unsafeCoerce {}) b
112+ (Record pq -> body -> Om (Record ()) errorRow result) where
113+ buildClientFn _ _ _ f = unsafeCoerce (\pqr b -> f pqr (unsafeCoerce {}) b)
114114
115115-- With path/query, with headers, no body
116116instance
@@ -122,8 +122,8 @@ instance
122122 h
123123 errorRow
124124 result
125− (Record pq -> Record h -> Om {} errorRow result) where
126− buildClientFn _ _ _ f = \pqr hdrs -> f pqr hdrs unit
125+ (Record pq -> Record h -> Om (Record ()) errorRow result) where
126+ buildClientFn _ _ _ f = unsafeCoerce (\pqr hdrs -> f pqr hdrs unit)
127127
128128-- With path/query, with headers, with body
129129instance
@@ -135,5 +135,5 @@ instance
135135 h
136136 errorRow
137137 result
138− (Record pq -> Record h -> body -> Om {} errorRow result) where
139− buildClientFn _ _ _ f = f
138+ (Record pq -> Record h -> body -> Om (Record ()) errorRow result) where
139+ buildClientFn _ _ _ f = unsafeCoerce f