Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
35f53b0e
Commit
35f53b0e
authored
Jun 07, 2011
by
dterei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SafeHaskell: Fix imports of base when base unsafe
parent
b8281d80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
compiler/utils/FastString.lhs
compiler/utils/FastString.lhs
+2
-1
compiler/utils/GhcIO.hs
compiler/utils/GhcIO.hs
+7
-3
No files found.
compiler/utils/FastString.lhs
View file @
35f53b0e
...
@@ -96,7 +96,6 @@ import FastFunctions
...
@@ -96,7 +96,6 @@ import FastFunctions
import Panic
import Panic
import Util
import Util
import Foreign
import Foreign.C
import Foreign.C
import GHC.Exts
import GHC.Exts
import System.IO
import System.IO
...
@@ -109,8 +108,10 @@ import Data.Char ( ord )
...
@@ -109,8 +108,10 @@ import Data.Char ( ord )
import GhcIO ( IO(..) )
import GhcIO ( IO(..) )
#if __GLASGOW_HASKELL__ >= 701
#if __GLASGOW_HASKELL__ >= 701
import Foreign.Safe
import GHC.Ptr.Unsafe ( Ptr(..) )
import GHC.Ptr.Unsafe ( Ptr(..) )
#else
#else
import Foreign hiding ( unsafePerformIO )
import GHC.Ptr ( Ptr(..) )
import GHC.Ptr ( Ptr(..) )
#endif
#endif
...
...
compiler/utils/GhcIO.hs
View file @
35f53b0e
...
@@ -7,14 +7,18 @@
...
@@ -7,14 +7,18 @@
--
--
module
GhcIO
(
module
GhcIO
(
#
if
__GLASGOW_HASKELL__
>=
701
#
if
__GLASGOW_HASKELL__
>=
701
module
GHC
.
IO
.
Unsafe
,
module
GHC
.
IO
.
Safe
,
#
endif
module
GHC
.
IO
.
Unsafe
#
else
module
GHC
.
IO
module
GHC
.
IO
#
endif
)
where
)
where
#
if
__GLASGOW_HASKELL__
>=
701
#
if
__GLASGOW_HASKELL__
>=
701
import
GHC.IO.Safe
import
GHC.IO.Unsafe
import
GHC.IO.Unsafe
#
else
import
GHC.IO
#
endif
#
endif
import
GHC.IO
Write
Preview
Markdown
is supported
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