Skip to content

Commit de4ca34

Browse files
Integrate MultiVerb into servant package
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`.
1 parent c4f3e9b commit de4ca34

File tree

7 files changed

+478
-35
lines changed

7 files changed

+478
-35
lines changed

servant/servant.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,12 @@ library
106106
Servant.API.Sub
107107
Servant.API.TypeErrors
108108
Servant.API.TypeLevel
109+
Servant.API.TypeLevel.List
109110
Servant.API.UVerb
110111
Servant.API.UVerb.Union
111112
Servant.API.Vault
112113
Servant.API.Verbs
114+
Servant.API.MultiVerb
113115
Servant.API.WithNamedContext
114116
Servant.API.WithResource
115117

@@ -133,6 +135,7 @@ library
133135
, containers >=0.6 && <0.8
134136
, mtl ^>=2.2.2 || ^>=2.3.1
135137
, sop-core >=0.4.0.0 && <0.6
138+
, generics-sop ^>=0.5.1
136139
, text >=1.2.3.0 && <2.2
137140
, transformers >=0.5.2.0 && <0.7
138141

servant/src/Servant/API/Alternative.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ instance (Semigroup a, Semigroup b) => Semigroup (a :<|> b) where
3535

3636
instance (Monoid a, Monoid b) => Monoid (a :<|> b) where
3737
mempty = mempty :<|> mempty
38-
(a :<|> b) `mappend` (a' :<|> b') = (a `mappend` a') :<|> (b `mappend` b')
3938

4039
instance Bifoldable (:<|>) where
4140
bifoldMap f g ~(a :<|> b) = f a `mappend` g b

0 commit comments

Comments
 (0)