@@ -27,7 +27,7 @@ import Servant.API.Post
2727import Servant.API.QueryParam
2828import Servant.API.Raw
2929import Servant.API.Sub
30−import Servant.API.Union
30+import Servant.API.Alternative
3131import Servant.Server
3232
3333
@@ -184,20 +184,20 @@ rawSpec = do
184184 simpleBody response `shouldBe` cs (show ["bar" :: String])
185185
186186
187−type UnionApi =
187+type AlternativeApi =
188188 "foo" :> Get Person
189189 :<|> "bar" :> Get Animal
190−unionApi :: Proxy UnionApi
190+unionApi :: Proxy AlternativeApi
191191unionApi = Proxy
192192
193−unionServer :: Server UnionApi
193+unionServer :: Server AlternativeApi
194194unionServer =
195195 return alice
196196 :<|> return jerry
197197
198198unionSpec :: Spec
199199unionSpec = do
200− describe "Servant.API.Union" $ do
200+ describe "Servant.API.Alternative" $ do
201201 with (return $ serve unionApi unionServer) $ do
202202 it "unions endpoints" $ do
203203 response <- get "/foo"