Using hoogle 5, the json response contains html markup and escape sequences (>).
E.g., when querying https://hoogle.haskell.org/?mode=json&hoogle=fmap&count=1, formatted json response is:
[
{
"url": "https://hackage.haskell.org/package/base/docs/Prelude.html#v:fmap",
"module": {
"url": "https://hackage.haskell.org/package/base/docs/Prelude.html",
"name": "Prelude"
},
"package": {
"url": "https://hackage.haskell.org/package/base",
"name": "base"
},
"item": "<span class=name><0>fmap</0></span> :: Functor f => (a -> b) -> f a -> f b",
"type": "",
"docs": ""
}
]
I think that the default behavior shouldn't contain any markup, as it's supposed to be consumed by a machine.
Using hoogle 5, the json response contains html markup and escape sequences (
>).E.g., when querying
https://hoogle.haskell.org/?mode=json&hoogle=fmap&count=1, formatted json response is:I think that the default behavior shouldn't contain any markup, as it's supposed to be consumed by a machine.