* Use a separate finder cache for each typecheck call
On a large DAML project, we occasionally saw error about missing
modules during typechecking during concurrent compilations. This was
caused by the fact that we modified the IORef in the HscEnv which is
shared between concurrent compilations.
Previously we had a mix of GHC_STABLE and checks on
__GLASGOW_HASKELL__. This PR changes this to always check on
MIN_GHC_API_VERSION. Depending on whether you use ghc-lib or not (now
controlled by a cabal flag), this macro expands to MIN_VERSION_ghc or
MIN_VERSION_ghc_lib.
after extracting the compiler/ghcide folder from the
https://github.com/digital-asset/daml repo, we need to set up a new CI
configuration for the new repo; this is mostly taking over the existing
stack job from the daml repo.