Skip to content

Commit 75d0ab5

Browse files
authored
Merge pull request #132 from josephcsible/unsafeAt
Only import unsafeAt if we're actually going to use it
2 parents 1d0f2e9 + ef405a2 commit 75d0ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ always_imports = "#if __GLASGOW_HASKELL__ >= 603\n" ++
361361
"#endif\n" ++
362362
"#if __GLASGOW_HASKELL__ >= 503\n" ++
363363
"import Data.Array\n" ++
364-
"import Data.Array.Base (unsafeAt)\n" ++
365364
"#else\n" ++
366365
"import Array\n" ++
367366
"#endif\n"
368367

369368
import_glaexts :: String
370369
import_glaexts = "#if __GLASGOW_HASKELL__ >= 503\n" ++
370+
"import Data.Array.Base (unsafeAt)\n" ++
371371
"import GHC.Exts\n" ++
372372
"#else\n" ++
373373
"import GlaExts\n" ++

0 commit comments

Comments
 (0)