Skip to content

A Haskell study with concurrency, http requests, JSON and XML parsing.

License

Notifications You must be signed in to change notification settings

FelipeMonobe/lagoinha-hs

Repository files navigation

lagoinha-hs

Haskell project inspired by https://github.com/IgorHalfeld/lagoinha.


About

✔️ - This project is mainly a Haskell study case, therefore susceptible to change, that can generate an executable/program from its source code.
❌ - This project isn't a library to install and import into your current project to use.

What it does

When executed, this program prompts for a brazilian zip code (CEP) and then races 4 concurrent fetch requests for its address components. The result is printed in Endereco type format.
Current services are Cep Aberto, Correios, Via CEP and Widenet.

Usage (with stack)

> git clone [email protected]:FelipeMonobe/lagoinha-hs.git
> cd lagoinha-hs
> stack build
> stack exec lagoinha-hs-exe

⚠️ Change git clone url accordingly with your preference.