aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/GHC
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2008-04-12 14:02:18 +0000
committerDavid Waern <david.waern@gmail.com>2008-04-12 14:02:18 +0000
commit732ec0cf87e799bd4b8d198ffac7bd9a1b2a1d73 (patch)
treed88a2c4d4ece01d7934c1f0514f7e0c8bfc79870 /src/Haddock/GHC
parenta75db99a9c2fb5b22a65c0a5b030c855dd1d8cba (diff)
Fix printing of data binders
Diffstat (limited to 'src/Haddock/GHC')
-rw-r--r--src/Haddock/GHC/Utils.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Haddock/GHC/Utils.hs b/src/Haddock/GHC/Utils.hs
index eae73597..843c11b8 100644
--- a/src/Haddock/GHC/Utils.hs
+++ b/src/Haddock/GHC/Utils.hs
@@ -39,6 +39,10 @@ isNameSym :: Name -> Bool
isNameSym = isSymOcc . nameOccName
+isVarSym :: OccName -> Bool
+isVarSym = isLexVarSym . occNameFS
+
+
getMainDeclBinder :: HsDecl name -> Maybe name
getMainDeclBinder (TyClD d) = Just (tcdName d)
getMainDeclBinder (ValD d)