Closed
Description
I thought I had seen this feature request filed ages ago, but couldn't find it (the closest related side-comment I did find was #335 (comment)). In any case, here it is (again) explicitly:
It's possible (and afaik recommended) to list used language extensions in the .cabal
file. However, that information is currently used too late, after the cabal solver has already locked into an install-plan.
Instead, the Cabal solver should regard the declared {default,other}-extensions
as a dependency, and integrate that information with the solving algorithm, thereby allowing to backtrack to other package-versions/install-plans if the current compiler is known not to provide the requested language extensions
/cc @dcoutts