How should I create a data structure from multiple network requests in Haskell

Published: 4/10/2017
How should I create a data structure from multiple network requests in Haskell
Source: STACKOVERFLOW.COM

I'm new to Haskell so apologies in advance for the potentially stupid question. I'd like to build a data structure that is constructed from two http requests in my application. My first request gets a basic list of users which I could choose to decode to Maybe [User] r <- getWith opts "https://www.example.com/users" let users = decode $ r ^. responseBody :: Maybe [User] But if I'd like to

Read more
Related news
Comment