DEV Community

Discussion on: Rewriting to Haskell–Parsing Query Params, Again

Collapse
 
tfausak profile image
Taylor Fausak

I like how you use primitive types in the API signature and custom types in the handler! That's a clever way to avoid ending up with Maybe SearchQuery as a function argument, especially since Nothing should be treated the same as Just NoQuery.

Collapse
 
riccardoodone profile image
Riccardo Odone

Thanks for the kind words Taylor!