Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
11074 commits behind the upstream repository.
Joachim Breitner's avatar
Joachim Breitner authored
previously, `safeFlagCheck` would be happy to switch the `safeFlag` to
`False`, but not the other way around. This meant that after

    :set -XGeneralizedNewtypeDeriving
    :set -XNoGeneralizedNewtypeDeriving

in GHCi all loaded files would be still be infered as unsafe.

This fixes #19243.

This is a corner case, but somewhat relevant once ghci by default starts
with `GeneralizedNewtypeDeriving` on (due to GHC2021).
f1362008
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.