diff --git a/servant/src/Servant/API/Alternative.hs b/servant/src/Servant/API/Alternative.hs index 130f7529..a9acbb08 100644 --- a/servant/src/Servant/API/Alternative.hs +++ b/servant/src/Servant/API/Alternative.hs @@ -22,7 +22,7 @@ import Prelude.Compat -- :} data a :<|> b = a :<|> b deriving (Typeable, Eq, Show, Functor, Traversable, Foldable, Bounded) -infixr 8 :<|> +infixr 3 :<|> instance (Semigroup a, Semigroup b) => Semigroup (a :<|> b) where (a :<|> b) <> (a' :<|> b') = (a <> a') :<|> (b <> b') diff --git a/servant/src/Servant/API/Sub.hs b/servant/src/Servant/API/Sub.hs index 616ecb2a..152293e4 100644 --- a/servant/src/Servant/API/Sub.hs +++ b/servant/src/Servant/API/Sub.hs @@ -16,7 +16,7 @@ import Data.Typeable (Typeable) -- >>> type MyApi = "hello" :> "world" :> Get '[JSON] World data (path :: k) :> a deriving (Typeable) -infixr 9 :> +infixr 4 :> -- $setup -- >>> import Servant.API