haskell-servant / haskell-servant/servant

Is there any way to use servant-client with blaze-html

Open
#1,379 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.