I'm new to both Haskell and Yesod, and am trying to build a simple web application that can answer queries from an external API. I have built a parser (using Parsec), that gets me the ID of an entity I want to load as a regular Int value.
However, I for the life of me can't figure out how to turn this Int into something that get
will accept (i. e. a Key
(?)). All the examples in the documentation only get the id from previous inserts, or from url dispatch.
Any help would be greatly appreciated, since I seem to be stuck... :)