File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
servant-server/src/Servant Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,12 @@ import Servant.Server.Internal
126
126
serve :: (HasServer api '[Bool ]) => Proxy api -> Server api -> Application
127
127
serve p = serveWithContext p (False :. EmptyContext )
128
128
129
- serveWithContext :: (HasServer api context )
129
+ serveWithContext :: (HasServer api context , HasContextEntry context Bool )
130
130
=> Proxy api -> Context context -> Server api -> Application
131
131
serveWithContext p context server =
132
132
toApplication
133
- False -- determins if we should fully evaluate response
133
+ (getContextEntry context :: Bool )
134
+ -- ^ determins if we should fully evaluate response
134
135
(runRouter (route p context (emptyDelayed (Route server))))
135
136
136
137
-- | Hoist server implementation.
You can’t perform that action at this time.
0 commit comments