You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be missing something very basic about how cabal works, but I cannot use 5.0.1 in a stack project without getting this error:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for mybin-0.1.0.0:
persistent-mtl is a library dependency, but the package provides no library
needed since budget is a build target.
stack file:
resolver: lts-20.9
extra-deps:
- persistent-mtl-0.5.0.1@sha256:44e14fdf2906676e8d40262ab1a4da6d22f766d4b6140be7321f662c05fb0ae2,3011
# other stuff...
Unfortunately, the MonadSqlQuery (TransactionM m) constraint is the thing causing issues, which was added in 4.0. So you'd need to drop to 3.0. I guess theoretically we could avoid adding the constraint in GHC 9.2, which would allow general use of the library to work with GHC 9.2, but using functions polymorphically wouldn't typecheck.
If you want to tinker around and put up a PR, I could merge it! I won't be able to try anything this weekend.
I might be missing something very basic about how cabal works, but I cannot use 5.0.1 in a stack project without getting this error:
stack file:
package.yaml
Downgrading to 5.0.0 works, which makes me wonder if it has to do with the
buildable: False
directive in thepersistent-mtl
.cabel file.The text was updated successfully, but these errors were encountered: