File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
servant/src/Servant/Utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ import Servant.API.Capture ( Capture )
116
116
import Servant.API.ReqBody ( ReqBody )
117
117
import Servant.API.QueryParam ( QueryParam , QueryParams , QueryFlag )
118
118
import Servant.API.Header ( Header )
119
+ import Servant.API.RemoteHost ( RemoteHost )
119
120
import Servant.API.Verbs ( Verb )
120
121
import Servant.API.Sub ( type (:> ) )
121
122
import Servant.API.Raw ( Raw )
@@ -292,6 +293,10 @@ instance HasLink sub => HasLink (Header sym a :> sub) where
292
293
type MkLink (Header sym a :> sub ) = MkLink sub
293
294
toLink _ = toLink (Proxy :: Proxy sub )
294
295
296
+ instance HasLink sub => HasLink (RemoteHost :> sub ) where
297
+ type MkLink (RemoteHost :> sub ) = MkLink sub
298
+ toLink _ = toLink (Proxy :: Proxy sub )
299
+
295
300
-- Verb (terminal) instances
296
301
instance HasLink (Verb m s ct a ) where
297
302
type MkLink (Verb m s ct a ) = URI
You can’t perform that action at this time.
0 commit comments