https://github.com/felipemonobe/lagoinha-hs
A Haskell study with concurrency, http requests, JSON and XML parsing.
https://github.com/felipemonobe/lagoinha-hs
aeson async asynchronous concurrency functional-programming haskell haskell-learning http json race-conditions wreq xml
Last synced: about 2 months ago
JSON representation
A Haskell study with concurrency, http requests, JSON and XML parsing.
- Host: GitHub
- URL: https://github.com/felipemonobe/lagoinha-hs
- Owner: FelipeMonobe
- License: mit
- Created: 2019-05-17T13:44:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T20:50:53.000Z (about 6 years ago)
- Last Synced: 2025-05-17T12:14:45.681Z (about 1 year ago)
- Topics: aeson, async, asynchronous, concurrency, functional-programming, haskell, haskell-learning, http, json, race-conditions, wreq, xml
- Language: Haskell
- Homepage:
- Size: 23.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](src/Endereco.hs) type format.
Current services are Cep Aberto, Correios, Via CEP and Widenet.
## Usage (with stack)
```sh
> git clone git@github.com:FelipeMonobe/lagoinha-hs.git
> cd lagoinha-hs
> stack build
> stack exec lagoinha-hs-exe
```
>⚠️ Change git clone url accordingly with your preference.