File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
himportscan/src/HImportScan Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE CPP #-}
2
2
{-# LANGUAGE PatternSynonyms #-}
3
3
{-# LANGUAGE ExplicitNamespaces #-}
4
+ {-# LANGUAGE MagicHash #-}
4
5
module Main where
5
6
6
7
#define a_multiline macro \
7
8
a second line of the macro
8
9
import NonModulesLib (nonModulesLib )
9
10
import PackageA.Other.C (type DataC , DataC (DataC ), pattern PatTrue )
11
+ import GHC.Exts (Int (.. ), Int #)
10
12
11
13
main :: IO ()
12
14
main = do
13
15
let
14
16
dataC :: DataC
15
17
dataC = DataC PatTrue
16
- putStrLn $ " Hello, Haskell! " ++ show nonModulesLib ++ show dataC
18
+ int# :: Int #
19
+ int# = case 1 of I # i -> i
20
+ putStrLn $ " Hello, Haskell! " ++ show nonModulesLib ++ show dataC ++ show (I # int# )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import GHC.LanguageExtensions as X
14
14
, ImplicitPrelude
15
15
, PatternSynonyms
16
16
, ExplicitNamespaces
17
+ , MagicHash
17
18
)
18
19
)
19
20
import HeaderInfo as X (getOptions , getImports )
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ toggleDynFlags dflags0 =
128
128
, GHC. TemplateHaskell
129
129
, GHC. PatternSynonyms
130
130
, GHC. ExplicitNamespaces
131
+ , GHC. MagicHash
131
132
]
132
133
in GHC. xopt_unset dflags1 GHC. ImplicitPrelude
133
134
You can’t perform that action at this time.
0 commit comments