@@ -225,7 +225,7 @@ instance (Elem JSON list, HasForeignType lang ftype a, ReflectMethod method)
225 method = reflectMethod (Proxy :: Proxy method)
225 method = reflectMethod (Proxy :: Proxy method)
226 methodLC = toLower $ decodeUtf8 method
226 methodLC = toLower $ decodeUtf8 method
228−instance (KnownSymbol sym, HasForeignType lang ftype a, HasForeign lang ftype api)
228+instance (KnownSymbol sym, HasForeignType lang ftype (Maybe a), HasForeign lang ftype api)
229 => HasForeign lang ftype (Header sym a :> api) where
229 => HasForeign lang ftype (Header sym a :> api) where
230 type Foreign ftype (Header sym a :> api) = Foreign ftype api
230 type Foreign ftype (Header sym a :> api) = Foreign ftype api
@@ -235,7 +235,7 @@ instance (KnownSymbol sym, HasForeignType lang ftype a, HasForeign lang ftype ap
235 hname = pack . symbolVal $ (Proxy :: Proxy sym)
235 hname = pack . symbolVal $ (Proxy :: Proxy sym)
236 arg = Arg
236 arg = Arg
237 { _argName = PathSegment hname
237 { _argName = PathSegment hname
238− , _argType = typeFor lang (Proxy :: Proxy ftype) (Proxy :: Proxy a) }
238+ , _argType = typeFor lang (Proxy :: Proxy ftype) (Proxy :: Proxy (Maybe a)) }
239 subP = Proxy :: Proxy api
239 subP = Proxy :: Proxy api
241instance (KnownSymbol sym, HasForeignType lang ftype a, HasForeign lang ftype api)
241instance (KnownSymbol sym, HasForeignType lang ftype a, HasForeign lang ftype api)