Skip to content

Commit

Permalink
fix hoistServerWithContext warning
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich committed Nov 20, 2022
1 parent bc57cd8 commit abada8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Servant/API/BrowserHeader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE UndecidableInstances #-}

module Servant.API.BrowserHeader where
Expand Down Expand Up @@ -45,6 +46,9 @@ instance ( KnownSymbol sym

route Proxy = route (Proxy :: Proxy (Header sym a :> sublayout))

hoistServerWithContext _ pc nt s =
hoistServerWithContext (Proxy @sublayout) pc nt . s


-- Ignore BrowserHeader in HasForeign:
instance (KnownSymbol sym, HasForeign lang ftype sublayout)
Expand Down

0 comments on commit abada8f

Please sign in to comment.