Skip to content

Functional programming (`fpdart`)

Compare
Choose a tag to compare
@SandroMaglione SandroMaglione released this 04 Dec 05:10
· 7 commits to main since this release
572c38b

This PR refactors the code to add Functional programming with the fpdart package.

Functional programming makes error handling in the app more solid and safe. These are the main changes:

  • Updated return type in repository from Future to TaskEither
  • Added error types for each request
  • Refactored repository implementations to return TaskEither (using fpdart's methods like tryCatch, flatMap, map)
  • Execute requests and display error message based on the type of error returned (Either type)

sign_in_done

What's Changed