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 #-}
8686 => AddSetCookies ('S n ) (a :<|> b ) (a' :<|> b' ) where
8787 addSetCookies cookies (a :<|> b) = addSetCookies cookies a :<|> addSetCookies cookies b
8888
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+
8994instance {-# OVERLAPS #-}
9095 ( AddSetCookies ('S n ) (ServerT (ToServantApi api ) m ) cookiedApi
9196 , Generic (api (AsServerT m ))
You can’t perform that action at this time.
0 commit comments