I wasn't completely sure if I wanted to post this or not, I'm also not a Haskell Guru, just dabble as a hobby. But today to honor Paul Hudak, I decided to dabble some more. :)
Haskell was my gateway functional programming language and for that I sincerely thank the creators.
Maybe make the common operations available in a strongly typed api, but allow users to use strings like this as a fallback. Then you can better guarantee "correct if it compiles".
Thanks for the input! I was considering using stronger types for the search parameters but wasn't familiar enough with Haskell's type system to make much progress. :)
5 comments
[ 3.7 ms ] story [ 19.7 ms ] threadHaskell was my gateway functional programming language and for that I sincerely thank the creators.
Maybe consider making the api more strongly typed?
Instead of:
You could have: Maybe make the common operations available in a strongly typed api, but allow users to use strings like this as a fallback. Then you can better guarantee "correct if it compiles".Not sure if this is a good idea or not, but interesting to think about.
I'll keep exploring options!