Closed m-bock closed 4 years ago
Yes, this would be a nice to have! A way we could do it would be to:
Perhaps there could also be a error or a warning when packages are in the dependency list but are not actually directly imported.
I can try and tackle this one over the next week or two
As it happens there is an issue for this inside the compiler https://github.com/purescript/purescript/issues/3493, and I think it might be preferable to do this inside the compiler rather than in Spago. Although having said this, the work we are looking at in that issue is going to be quite a bit more involved than what is being discussed here, so perhaps it's a good stopgap anyway.
@f-f I'm looking at implementation on this one now that I've had some time to examine. this and the referenced issue https://github.com/spacchetti/spago/issues/165 - it seems like this is blocked until we do something with the ideas in https://github.com/spacchetti/spago/issues/165
I just realized this is a duplicate of #598, I'll close this one as the new one is more up to date
Currently one can use all the modules that are indirect dependencies of the direct dependencies. It would be a bit nicer, if we could just use the modules that are explicitly declared.