Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
b5e939da
Commit
b5e939da
authored
Aug 04, 2007
by
Ian Lynagh
Browse files
Rename Opt_TH to Opt_TemplateHaskell to match the language name
parent
fa15af51
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/main/DynFlags.hs
View file @
b5e939da
...
...
@@ -170,7 +170,7 @@ data DynFlag
|
Opt_UnliftedFFITypes
|
Opt_PArr
-- Syntactic support for parallel arrays
|
Opt_Arrows
-- Arrow-notation syntax
|
Opt_T
H
|
Opt_T
emplateHaskell
|
Opt_ImplicitParams
|
Opt_Generics
|
Opt_ImplicitPrelude
...
...
@@ -1136,7 +1136,7 @@ fFlags = [
(
"break-on-exception"
,
Opt_BreakOnException
),
(
"vectorise"
,
Opt_Vectorise
),
-- Deprecated in favour of -XTemplateHaskell:
(
"th"
,
Opt_T
H
),
(
"th"
,
Opt_T
emplateHaskell
),
-- Deprecated in favour of -XForeignFunctionInterface:
(
"fi"
,
Opt_ForeignFunctionInterface
),
-- Deprecated in favour of -XForeignFunctionInterface:
...
...
@@ -1193,7 +1193,7 @@ xFlags = [
(
"RecursiveDo"
,
Opt_RecursiveDo
),
(
"Arrows"
,
Opt_Arrows
),
(
"PArr"
,
Opt_PArr
),
(
"TemplateHaskell"
,
Opt_T
H
),
(
"TemplateHaskell"
,
Opt_T
emplateHaskell
),
(
"Generics"
,
Opt_Generics
),
-- On by default:
(
"ImplicitPrelude"
,
Opt_ImplicitPrelude
),
...
...
compiler/parser/Lexer.x
View file @
b5e939da
...
...
@@ -1563,7 +1563,7 @@ mkPState buf loc flags =
.|. ffiBit `setBitIf` dopt Opt_ForeignFunctionInterface flags
.|. parrBit `setBitIf` dopt Opt_PArr flags
.|. arrowsBit `setBitIf` dopt Opt_Arrows flags
.|. thBit `setBitIf` dopt Opt_T
H
flags
.|. thBit `setBitIf` dopt Opt_T
emplateHaskell
flags
.|. ipBit `setBitIf` dopt Opt_ImplicitParams flags
.|. explicitForallBit `setBitIf` dopt Opt_ScopedTypeVariables flags
.|. explicitForallBit `setBitIf` dopt Opt_PolymorphicComponents flags
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment