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
f10947d7
Commit
f10947d7
authored
Sep 09, 2010
by
Ross Paterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid Foreign.unsafePerformIO
parent
b94d8b0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
compiler/ghci/ByteCodeFFI.lhs
compiler/ghci/ByteCodeFFI.lhs
+1
-1
compiler/ghci/RtClosureInspect.hs
compiler/ghci/RtClosureInspect.hs
+2
-2
compiler/main/InteractiveEval.hs
compiler/main/InteractiveEval.hs
+2
-1
compiler/utils/FastString.lhs
compiler/utils/FastString.lhs
+1
-1
No files found.
compiler/ghci/ByteCodeFFI.lhs
View file @
f10947d7
...
...
@@ -9,7 +9,7 @@ module ByteCodeFFI ( moan64 ) where
import Outputable
import System.IO
import
Foreign
import
System.IO.Unsafe
moan64 :: String -> SDoc -> a
moan64 msg pp_rep
...
...
compiler/ghci/RtClosureInspect.hs
View file @
f10947d7
...
...
@@ -75,8 +75,8 @@ import Data.List
import
qualified
Data.Sequence
as
Seq
import
Data.Monoid
import
Data.Sequence
(
viewl
,
ViewL
(
..
))
import
Foreign
--
import System.IO.Unsafe
import
Foreign
hiding
(
unsafePerformIO
)
import
System.IO.Unsafe
---------------------------------------------
-- * A representation of semi evaluated Terms
...
...
compiler/main/InteractiveEval.hs
View file @
f10947d7
...
...
@@ -78,7 +78,7 @@ import System.Directory
import
Data.Dynamic
import
Data.List
(
find
,
partition
)
import
Control.Monad
import
Foreign
import
Foreign
hiding
(
unsafePerformIO
)
import
Foreign.C
import
GHC.Exts
import
Data.Array
...
...
@@ -87,6 +87,7 @@ import Control.Concurrent
import
Data.List
(
sortBy
)
-- import Foreign.StablePtr
import
System.IO
import
System.IO.Unsafe
-- -----------------------------------------------------------------------------
-- running a statement interactively
...
...
compiler/utils/FastString.lhs
View file @
f10947d7
...
...
@@ -95,7 +95,7 @@ import FastFunctions
import Panic
import Util
import Foreign
import Foreign
hiding ( unsafePerformIO )
import Foreign.C
import GHC.Exts
import System.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