ELM QueryString parser dont compile

后端 未结 1 805
日久生厌
日久生厌 2021-01-25 23:14

I am really trying to learn a bit of ELM, but my mind collapse at the query parse, my idea was to create a function to get a query string value by name something like: given an

相关标签:
1条回答
  • 2021-01-26 00:09

    The immediate problem is that int "page" will return a Maybe Int, but you're trying to use it with Result.withDefault, which, as the error message says, expects a Result. The fix for this is just to use Maybe.withDefault instead.

    0 讨论(0)
提交回复
热议问题