rgrinberg / opium

Sinatra like web toolkit for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pretty printers for opium types

anuragsoni opened this issue · comments

In the current Cohttp implementation, we have sexp derivers for all the underlying http types via Cohttp. As part of #94 we tried to build and run using httpaf-lwt-unix. The sexp ppx was turned off for now as Httpaf doesn't define sexp derivers. It might be tedious but we should explore just defining our own derivers without using the ppx. One added benefit could be it'd make it easier to use the dune future_syntax shim so we can write the bind/map in direct style.

We should be able to depend on just sexplib0 for the sexp related things.

This is now done in the current master branch.