projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e36b5
)
[project @ 1999-06-22 16:32:42 by simonpj]
author
simonpj
<unknown>
Tue, 22 Jun 1999 16:32:42 +0000
(16:32 +0000)
committer
simonpj
<unknown>
Tue, 22 Jun 1999 16:32:42 +0000
(16:32 +0000)
Add HsBinds.isPragSig
ghc/compiler/hsSyn/HsBinds.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/HsBinds.lhs
b/ghc/compiler/hsSyn/HsBinds.lhs
index
375fe31
..
da37e20
100644
(file)
--- a/
ghc/compiler/hsSyn/HsBinds.lhs
+++ b/
ghc/compiler/hsSyn/HsBinds.lhs
@@
-262,6
+262,14
@@
isFixitySig _ = False
isClassOpSig :: Sig name -> Bool
isClassOpSig (ClassOpSig _ _ _ _) = True
isClassOpSig _ = False
+
+isPragSig :: Sig name -> Bool
+ -- Identifies pragmas
+isPragSig (SpecSig _ _ _) = True
+isPragSig (InlineSig _ _) = True
+isPragSig (NoInlineSig _ _) = True
+isPragSig (SpecInstSig _ _) = True
+isPragSig other = False
\end{code}
\begin{code}