Hello all,
I’m triing to create custom hyper middleware, I checked typedef in hyper parseForm and it looks similar to mi typedef, but I get:
Could not match kind
Type -> Type
with kind
Type
while checking the kind of Monad m => Request req m => Middleware m (Conn req res (Record c))
(Conn req res
{ parsedUrl :: ParsedUrl
| c
}
)
in value declaration initRouter
in code
initRouter :: forall m req res c .
Monad m =>
Request req m =>
Middleware
m
(Conn req res (Record c))
(Conn req res { parsedUrl :: ParsedUrl | c })
initRouter = Ix.do
requestData <- getRequestData
modifyConn \conn -> conn { parsedUrl = (force requestData.parsedUrl) }
I also tried type, with same error
initRouter :: forall m req res c .
Monad m =>
Request req m =>
Middleware
m
(Conn req res c)
(Conn req res c)
thank you in advance