Failed to build Distribution.Simple package using stack in Haskell
Solution 1:
The error means that you have that package installed, but it is not listed as a dependency in your project. You need to add it in the package.yaml
in library/dependencies
or your exe:
library:
source-dirs: src
dependencies:
- Cabal
(also note that the package you miss is Cabal
as stated in the message, not distribution
which is just a module name)