Joel Grus 2/15/2016

Building a Stupid Data Product, Part 2: The Web Service (Haskell)

Read Original

This 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.

Building a Stupid Data Product, Part 2: The Web Service (Haskell)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week