Building a Stupid Data Product, Part 2: The Web Service (Haskell)
Read OriginalThis technical article details the second part of building a 'stupid data product'—a web service that generates random science questions. It covers defining Haskell types for questions and tokens, implementing a random question generator using a Markov chain approach with transition dictionaries, and creating a concrete API with the Servant library to serve the questions as JSON.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser