Skip to content

Commit c2f6245

Browse files
committed
Fixed #ifdef generation magic.
1 parent daa6d0e commit c2f6245

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
3.1.0.1
22
-------
3+
* Updated warning flag magic for GHC 8.0.
34
* Updated OpenGL registry to r32363.
45

56
3.1.0.0

RegistryProcessor/src/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ printTokens api registry = do
7777
let comment =
7878
["All enumeration tokens from the",
7979
"<http://www.opengl.org/registry/ OpenGL registry>."]
80-
startModule ["Tokens"] (Just "{-# LANGUAGE PatternSynonyms, ScopedTypeVariables #-}\n{-# OPTIONS_GHC -Wno-missing-pattern-synonym-signatures #-}") comment $ \moduleName h -> do
80+
startModule ["Tokens"] (Just "{-# LANGUAGE CPP, PatternSynonyms, ScopedTypeVariables #-}\n#if __GLASGOW_HASKELL__ >= 800\n{-# OPTIONS_GHC -Wno-missing-pattern-synonym-signatures #-}\n#endif") comment $ \moduleName h -> do
8181
SI.hPutStrLn h $ "module " ++ moduleName ++ " where"
8282
SI.hPutStrLn h ""
8383
SI.hPutStrLn h $ "import " ++ moduleNameFor ["Types"]

0 commit comments

Comments
 (0)