Add NoImplicitPrelude to buildTypeScript
commit42b8dc1f7d449a9b9de94640f38479f01b0c1eff
authorsheaf <sam.derbyshire@gmail.com>
Thu, 9 May 2024 09:21:35 +0000 (9 11:21 +0200)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Sat, 11 May 2024 14:39:58 +0000 (11 14:39 +0000)
tree2f560510f9f5ee63022845c86d5c809440df0eb8
parent47e72959caffd9d2f33978a957362b1b9c571824
Add NoImplicitPrelude to buildTypeScript

This allows us to compile Setup.hs without depending on base.
In particular, this ensures that a package with `build-type: Hooks`
and a custom setup stanza that does not depend on base successfully
compiles.

Tested in PackageTests/SetupHooks/SetupHooksNoBase.
cabal-install/src/Distribution/Client/ProjectPlanning/SetupPolicy.hs
cabal-install/src/Distribution/Client/SetupWrapper.hs
cabal-testsuite/PackageTests/SetupHooks/SetupHooksNoBase/A.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SetupHooks/SetupHooksNoBase/SetupHooks.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SetupHooks/SetupHooksNoBase/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SetupHooks/SetupHooksNoBase/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SetupHooks/SetupHooksNoBase/setup-hooks-no-base-test.cabal [new file with mode: 0644]