You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The default language extensions for the eval plugin are the same as those for ghci
2
+
3
+
moduleTSameDefaultLanguageExtensionsAsGhciwhere
4
+
5
+
{-
6
+
Running `:showi language` within ghci currently lists NoDatatypeContexts, ExtendedDefaultRules, NoMonomorphismRestriction and NondecreasingIndentation.
7
+
8
+
The flags NoDatatypeContexts and NondecreasingIndentation are globally set in Haskell2021, whereas ExtendedDefaultRules and NoMonomorphismRestriction are set manually within ghci.
9
+
(see https://github.com/ghc/ghc/blob/5abf59976c7335df760e5d8609d9488489478173/ghc/GHCi/UI.hs#L473-L483)
10
+
11
+
It therefore suffices to test for ExtendedDefaultRules and NoMonomorphismRestriction only.
-- The default language extensions for the eval plugin are the same as those for ghci
2
+
3
+
moduleTSameDefaultLanguageExtensionsAsGhciwhere
4
+
5
+
{-
6
+
Running `:showi language` within ghci currently lists NoDatatypeContexts, ExtendedDefaultRules, NoMonomorphismRestriction and NondecreasingIndentation.
7
+
8
+
The flags NoDatatypeContexts and NondecreasingIndentation are globally set in Haskell2021, whereas ExtendedDefaultRules and NoMonomorphismRestriction are set manually within ghci.
9
+
(see https://github.com/ghc/ghc/blob/5abf59976c7335df760e5d8609d9488489478173/ghc/GHCi/UI.hs#L473-L483)
10
+
11
+
It therefore suffices to test for ExtendedDefaultRules and NoMonomorphismRestriction only.
0 commit comments