Hacker News new | past | comments | ask | show | jobs | submit login

You can do exactly this with the Haskell "servant" framework. Works great. It's in fact even more powerful than this. Your routes are first class, so you can pass them around and generate type-safe links.

It also doesn't require any "meta" level programming, just plain Haskell. And Haskell is blazing fast, not far behind C++ (especially when using high level C++ APIs like std::string)

https://haskell-servant.github.io/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: