Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
36565a9b
Commit
36565a9b
authored
Aug 02, 2016
by
Ömer Sinan Ağacan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ForeignCall.hs: Remove DrIFT directives
parent
20789091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
compiler/prelude/ForeignCall.hs
compiler/prelude/ForeignCall.hs
+0
-7
No files found.
compiler/prelude/ForeignCall.hs
View file @
36565a9b
...
...
@@ -37,7 +37,6 @@ import Data.Data
newtype
ForeignCall
=
CCall
CCallSpec
deriving
Eq
{-! derive: Binary !-}
isSafeForeignCall
::
ForeignCall
->
Bool
isSafeForeignCall
(
CCall
(
CCallSpec
_
_
safe
))
=
playSafe
safe
...
...
@@ -64,7 +63,6 @@ data Safety
-- without interacting with the runtime system at all
deriving
(
Eq
,
Show
,
Data
)
-- Show used just for Show Lex.Token, I think
{-! derive: Binary !-}
instance
Outputable
Safety
where
ppr
PlaySafe
=
text
"safe"
...
...
@@ -95,14 +93,12 @@ data CExportSpec
CLabelString
-- C Name of exported function
CCallConv
deriving
Data
{-! derive: Binary !-}
data
CCallSpec
=
CCallSpec
CCallTarget
-- What to call
CCallConv
-- Calling convention to use.
Safety
deriving
(
Eq
)
{-! derive: Binary !-}
-- The call target:
...
...
@@ -130,7 +126,6 @@ data CCallTarget
|
DynamicTarget
deriving
(
Eq
,
Data
)
{-! derive: Binary !-}
isDynamicTarget
::
CCallTarget
->
Bool
isDynamicTarget
DynamicTarget
=
True
...
...
@@ -151,7 +146,6 @@ See: http://www.programmersheaven.com/2/Calling-conventions
-- any changes here should be replicated in the CallConv type in template haskell
data
CCallConv
=
CCallConv
|
CApiConv
|
StdCallConv
|
PrimCallConv
|
JavaScriptCallConv
deriving
(
Eq
,
Data
)
{-! derive: Binary !-}
instance
Outputable
CCallConv
where
ppr
StdCallConv
=
text
"stdcall"
...
...
@@ -255,7 +249,6 @@ instance Outputable CType where
************************************************************************
-}
{-* Generated by DrIFT-v1.0 : Look, but Don't Touch. *-}
instance
Binary
ForeignCall
where
put_
bh
(
CCall
aa
)
=
put_
bh
aa
get
bh
=
do
aa
<-
get
bh
;
return
(
CCall
aa
)
...
...
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