Merge pull request #130 from haskell-servant/fix-128
Add (missing) HasLink instance for Header. Fixes #128
This commit is contained in:
commit
9b9ea1059c
1 changed files with 4 additions and 0 deletions
|
@ -341,6 +341,10 @@ instance (ToText v, HasLink sub)
|
|||
toLink (Proxy :: Proxy sub) $
|
||||
addSegment (escape . unpack $ toText v) l
|
||||
|
||||
instance HasLink sub => HasLink (Header sym a :> sub) where
|
||||
type MkLink (Header sym a :> sub) = MkLink sub
|
||||
toLink _ = toLink (Proxy :: Proxy sub)
|
||||
|
||||
-- Verb (terminal) instances
|
||||
instance HasLink (Get y r) where
|
||||
type MkLink (Get y r) = URI
|
||||
|
|
Loading…
Reference in a new issue