diff options
| author | sof <unknown> | 1998-11-08 17:10:41 +0000 |
|---|---|---|
| committer | sof <unknown> | 1998-11-08 17:10:41 +0000 |
| commit | 57d07fb8c739fb50f957c25e8987632d04da3969 (patch) | |
| tree | c912f7fd88f8fb0bba6c8b23411158a4ea3e49bd /ghc/compiler/reader | |
| parent | cbf8c1c90509e695ef327bfbd2214cc6a8711b59 (diff) | |
| download | haskell-57d07fb8c739fb50f957c25e8987632d04da3969.tar.gz | |
[project @ 1998-11-08 17:10:35 by sof]
First take at 'foreign label's
Diffstat (limited to 'ghc/compiler/reader')
| -rw-r--r-- | ghc/compiler/reader/PrefixToHs.lhs | 1 | ||||
| -rw-r--r-- | ghc/compiler/reader/ReadPrefix.lhs | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/ghc/compiler/reader/PrefixToHs.lhs b/ghc/compiler/reader/PrefixToHs.lhs index ce3e2fdde1..1d5b008548 100644 --- a/ghc/compiler/reader/PrefixToHs.lhs +++ b/ghc/compiler/reader/PrefixToHs.lhs @@ -197,7 +197,6 @@ cvOtherDecls b go acc (RdrClassDecl d) = ClD d : acc go acc (RdrInstDecl d) = InstD d : acc go acc (RdrDefaultDecl d) = DefD d : acc --- go acc (RdrForeignDecl d) = ForD d : acc go acc other = acc -- Ignore value bindings diff --git a/ghc/compiler/reader/ReadPrefix.lhs b/ghc/compiler/reader/ReadPrefix.lhs index 16946c2e6f..33ef93b7c0 100644 --- a/ghc/compiler/reader/ReadPrefix.lhs +++ b/ghc/compiler/reader/ReadPrefix.lhs @@ -964,9 +964,11 @@ wlkExtName (U_just pt) rdCallConv :: Int -> UgnM CallConv rdCallConv x = returnUgn x -rdImpExp :: Int -> Bool -> UgnM (Maybe Bool) -rdImpExp 0 isUnsafe = -- foreign import - returnUgn (Just isUnsafe) +rdForKind :: Int -> Bool -> UgnM ForKind +rdForKind 0 isUnsafe = -- foreign import + returnUgn (FoImport isUnsafe) rdImpExp 1 _ = -- foreign export - returnUgn Nothing + returnUgn FoExport +rdImpExp 2 _ = -- foreign label + returnUgn FoLabel \end{code} |
