haskell-servant / haskell-servant/servant
(servant-foreign / servant-js) missing instances for PlainText content-type
Open
enhancement
servant-foreign
servant-js
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
ghc gives
```
No instance for servant-foreign-0.6.1:Servant.Foreign.Internal.NotFound
arising from a use of ‘jsForAPI’
In the second argument of ‘($)’, namely ‘jsForAPI api vanillaJS’
In the first argument of ‘(:<|>)’, namely
‘(return $ jsForAPI api vanillaJS)’
In the second argument of ‘(:<|>)’, namely
‘(return $ jsForAPI api vanillaJS)
:<|> (return $ decodeUtf8 . toStrict . encode . toSwagger $ api)’
```
when I try to make js output for ("api" :> Get '[PlainText] Text)
Contributor guide
Assessment
This issue has not been assessed yet.