Skip to content

Commit

Permalink
Fix servant-foreign
Browse files Browse the repository at this point in the history
  • Loading branch information
theophile-scrive committed Jul 10, 2024
1 parent 6fe132b commit d56e9d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions servant-foreign/src/Servant/Foreign/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import Servant.API
import Servant.API.Modifiers
(RequiredArgument)
import Servant.API.TypeLevel
import Servant.API.MultiVerb (MultiVerb)

-- | Canonical name of the endpoint, can be used to generate a function name.
--
Expand Down Expand Up @@ -326,8 +327,8 @@ instance (KnownSymbol sym, HasForeignType lang ftype [t], HasForeign lang ftype
, _argType = ftype }

instance (Elem JSON list, HasForeignType lang ftype a, ReflectMethod method)
=> HasForeign lang ftype (Verb method status list a) where
type Foreign ftype (Verb method status list a) = Req ftype
=> HasForeign lang ftype (MultiVerb method list status a) where
type Foreign ftype (MultiVerb method list status a) = Req ftype

foreignFor lang Proxy Proxy req =
req & reqFuncName . _FunctionName %~ (methodLC :)
Expand Down

0 comments on commit d56e9d7

Please sign in to comment.