So, I was trying to get the Control.Concurrent.Async module, which is exposed from the async package:
cabal new-install async
This doesn’t work. Cabal says that the package is up-to-date, but a) it produces a warning, and b) I can’t import module Control.Concurrent.Async into my Haskell code afterwards…
Warning: You asked to install executables, but there are no executables in
target: async. Perhaps you want to use --lib to install libraries instead.
And adding --lib just produces errors.
On the other hand, I can try this and it just works, even though listed as obsolete:
cabal v1-install async
Why is this please?