Skip to content

Commit 349af63

Browse files
Add HasLink instance.
1 parent 582d7ef commit 349af63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Servant/Multipart.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,7 @@ instance {-# OVERLAPPABLE #-}
362362
instance {-# OVERLAPPING #-}
363363
LookupContext cs a => LookupContext (a ': cs) a where
364364
lookupContext _ (c :. _) = Just c
365+
366+
instance HasLink sub => HasLink (MultipartForm a :> sub) where
367+
type MkLink (MultipartForm a :> sub) = MkLink sub
368+
toLink _ = toLink (Proxy :: Proxy sub)

0 commit comments

Comments
 (0)