ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Use `aeson` for generating `mode=json` response #21

Closed hvr closed 11 years ago

hvr commented 11 years ago

This fixes the previous fragile way of synthesizing JSON by manual string concatenations which sometimes results in invalid JSON responses. Moreover, the lazy bytestring emitted by aeson's encoder is directly fed into WAI's response structure w/o the need to go through String.

ndmitchell commented 11 years ago

Thanks, looks much nicer.