@@ -165,7 +165,6 @@ class HasServer layout where
166type Server' layout = ServerT layout (EitherT (Int, String) IO)
166type Server' layout = ServerT layout (EitherT (Int, String) IO)
169-- * Instances
168-- * Instances
171-- | A server for @a ':<|>' b@ first tries to match the request against the route
170-- | A server for @a ':<|>' b@ first tries to match the request against the route
@@ -184,7 +183,7 @@ instance (HasServer a, HasServer b) => HasServer (a :<|> b) where
184 type ServerT (a :<|> b) m = ServerT a m :<|> ServerT b m
183 type ServerT (a :<|> b) m = ServerT a m :<|> ServerT b m
186 route Proxy (a :<|> b) request respond =
185 route Proxy (a :<|> b) request respond =
187− route pa a request $ \ mResponse ->
186+ route pa a request $ \mResponse ->
188 if isMismatch mResponse
187 if isMismatch mResponse
189 then route pb b request $ \mResponse' -> respond (mResponse <> mResponse')
188 then route pb b request $ \mResponse' -> respond (mResponse <> mResponse')
190 else respond mResponse
189 else respond mResponse