Skip to content

Commit

Permalink
Integrate MultiVerb into servant package
Browse files Browse the repository at this point in the history
This commit is Part 1 of the integration, where only the
`servant`Epackage is touched. `Verb` is redefined as an alias for
`MultiVerb1` inEorder to make the transition transparent to users of
`Verb`.
  • Loading branch information
theophile-scrive committed Jan 14, 2025
1 parent cd7d93d commit 5fc21f5
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 35 deletions.
3 changes: 3 additions & 0 deletions servant/servant.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ library
Servant.API.Sub
Servant.API.TypeErrors
Servant.API.TypeLevel
Servant.API.TypeLevel.List
Servant.API.UVerb
Servant.API.UVerb.Union
Servant.API.Vault
Servant.API.Verbs
Servant.API.MultiVerb
Servant.API.WithNamedContext
Servant.API.WithResource

Expand All @@ -131,6 +133,7 @@ library
, containers >=0.6.5.1 && <0.8
, mtl ^>=2.2.2 || ^>=2.3.1
, sop-core >=0.4.0.0 && <0.6
, generics-sop ^>=0.5.1
, text >=1.2.3.0 && <2.2
, transformers >=0.5.2.0 && <0.7

Expand Down
1 change: 0 additions & 1 deletion servant/src/Servant/API/Alternative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ instance (Semigroup a, Semigroup b) => Semigroup (a :<|> b) where

instance (Monoid a, Monoid b) => Monoid (a :<|> b) where
mempty = mempty :<|> mempty
(a :<|> b) `mappend` (a' :<|> b') = (a `mappend` a') :<|> (b `mappend` b')

instance Bifoldable (:<|>) where
bifoldMap f g ~(a :<|> b) = f a `mappend` g b
Expand Down
Loading

0 comments on commit 5fc21f5

Please sign in to comment.