Skip to content

Commit 9e4285f

Browse files
vwwvphadej
authored andcommitted
Yielding for safe instances of HasLink
1 parent 372c1e2 commit 9e4285f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servant/src/Servant/Utils/Links.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ instance HasLink sub => HasLink (BasicAuth realm a :> sub) where
307307

308308
-- Verb (terminal) instances
309309
instance HasLink (Verb m s ct a) where
310-
type MkLink (Verb m s ct a) = URI
311-
toLink _ = linkURI
310+
type MkLink (Verb m s ct a) = Link
311+
toLink _ = id
312312

313313
instance HasLink Raw where
314314
type MkLink Raw = URI

0 commit comments

Comments
 (0)