Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c1e36d8b
Commit
c1e36d8b
authored
Aug 11, 2006
by
Simon Marlow
Browse files
update FFI syntax
parent
330f767a
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/concurrent/should_run/conc037.hs
View file @
c1e36d8b
...
...
@@ -2,7 +2,7 @@ module Main where
import
Control.Concurrent
foreign
import
"sleep"
threadsafe
sleepBlock
::
Int
->
IO
()
foreign
import
ccall
safe
"sleep"
sleepBlock
::
Int
->
IO
()
main
::
IO
()
main
=
do
...
...
testsuite/tests/ghc-regress/concurrent/should_run/conc038.hs
View file @
c1e36d8b
...
...
@@ -5,9 +5,9 @@ import Control.Concurrent
haskellFun
::
Int
->
IO
()
haskellFun
c
=
putStrLn
(
"Haskell: "
++
show
c
)
foreign
export
"hFun"
haskellFun
::
Int
->
IO
()
foreign
import
"hFun"
safe
hFun
::
Int
->
IO
()
foreign
import
"sleep"
safe
sleepBlock
::
Int
->
IO
()
foreign
export
ccall
"hFun"
haskellFun
::
Int
->
IO
()
foreign
import
ccall
safe
"hFun"
hFun
::
Int
->
IO
()
foreign
import
ccall
safe
"sleep"
sleepBlock
::
Int
->
IO
()
main
::
IO
()
main
=
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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