File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
servant-auth/servant-auth-server/src/Servant/Auth/Server/Internal Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ synopsis: Add AddSetCookies instance for when the left tree is the same before and after the transformation.
2
+ prs: #1702
3
+ issues: #1601
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ instance {-# OVERLAPS #-}
86
86
=> AddSetCookies ('S n ) (a :<|> b ) (a' :<|> b' ) where
87
87
addSetCookies cookies (a :<|> b) = addSetCookies cookies a :<|> addSetCookies cookies b
88
88
89
+ instance {-# OVERLAPPING #-}
90
+ (AddSetCookies ('S n ) a a , AddSetCookies ('S n ) b b' )
91
+ => AddSetCookies ('S n ) (a :<|> b ) (a :<|> b' ) where
92
+ addSetCookies cookies ( a :<|> b) = addSetCookies cookies a :<|> addSetCookies cookies b
93
+
89
94
instance {-# OVERLAPS #-}
90
95
( AddSetCookies ('S n ) (ServerT (ToServantApi api ) m ) cookiedApi
91
96
, Generic (api (AsServerT m ))
You can’t perform that action at this time.
0 commit comments