uliSchuster / real-world-backend

A study project on how to develop a production-grade Haskell backend application.
Apache License 2.0
1 stars 1 forks source link

Put modules according to the clean architecture principle into separate packages #21

Closed uliSchuster closed 4 years ago

uliSchuster commented 4 years ago

A module according to the clean architecture principle is something different than a Haskell module. So far, I captured clean architecture modules by means of separate folders in the source tree. However, this mechanism does not ensure that I do not accidentally violate the dependency rule. A better solution might be packages. Therefore, the goal is to figure out if packages can be introduced and if the dependency rule still holds.

Acceptance criteria: Each source folder is converted into a package. Dependencies flow from the inside to the outside only. A graph that show the layers and dependencies is available as part of the documentation.