@@ -41,7 +41,6 @@ generate :: PackageDescription -> LocalBuildInfo -> ComponentLocalBuildInfo -> S
41
41
generate pkg_descr lbi clbi =
42
42
let pragmas =
43
43
cpp_pragma
44
- ++ no_overloaded_strings_pragma
45
44
++ no_rebindable_syntax_pragma
46
45
++ ffi_pragmas
47
46
++ warning_pragmas
@@ -50,14 +49,10 @@ generate pkg_descr lbi clbi =
50
49
| supports_cpp = " {-# LANGUAGE CPP #-}\n "
51
50
| otherwise = " "
52
51
53
- -- -XOverloadedStrings is problematic because 'fromString' is not
54
- -- in scope, so disable it.
55
- no_overloaded_strings_pragma
56
- | supports_overloaded_strings = " {-# LANGUAGE NoOverloadedStrings #-}\n "
57
- | otherwise = " "
58
-
59
52
-- -XRebindableSyntax is problematic because when paired with
60
- -- -XOverloadedLists, 'fromListN' is not in scope, so disable it.
53
+ -- -XOverloadedLists, 'fromListN' is not in scope,
54
+ -- or -XOverloadedStrings 'fromString' is not in scope,
55
+ -- so we disable 'RebindableSyntax'.
61
56
no_rebindable_syntax_pragma
62
57
| supports_rebindable_syntax = " {-# LANGUAGE NoRebindableSyntax #-}\n "
63
58
| otherwise = " "
@@ -253,7 +248,6 @@ generate pkg_descr lbi clbi =
253
248
path_sep = show [pathSeparator]
254
249
255
250
supports_cpp = supports_language_pragma
256
- supports_overloaded_strings = supports_language_pragma
257
251
supports_rebindable_syntax= ghc_newer_than (mkVersion [7 ,0 ,1 ])
258
252
supports_language_pragma = ghc_newer_than (mkVersion [6 ,6 ,1 ])
259
253
0 commit comments