haskell-servant / haskell-servant/servant
Is there any way to use servant-client with blaze-html
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
Hi all,
I would like to use servant-client to generate the clients for unit testing my server. I have most things working, but have run up against a similar issue to the one mentioned here: https://github.com/haskell-servant/servant-lucid/issues/14
I've attempted to implement my own MimeUnrender instance, but this is problematic because the "standard" blaze-html type is `MarkupM ()`, meaning that text beneath the HTML has been lost.
Is there any way to get this working without resorting to an entirely different client library? This solution does not necessarily have to be something implemented within one of these libraries, I would be happy implementing something on my end as well, though I would ideally not have to change my server-side code to satisfy idiosyncracies of the client.
Thanks,
Jordan
Contributor guide
Assessment
This issue has not been assessed yet.