Skip to content
Snippets Groups Projects
Commit f1362008 authored by Joachim Breitner's avatar Joachim Breitner Committed by Marge Bot
Browse files

Always set `safeInferred`, not only when it turns `False`

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).
parent 448fd22d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment