Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yitang Chen
haddock
Commits
b89d1c24
Commit
b89d1c24
authored
9 years ago
by
Matthew Pickering
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused functions
parent
ab954263
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
haddock-api/src/Haddock/GhcUtils.hs
+0
-32
0 additions, 32 deletions
haddock-api/src/Haddock/GhcUtils.hs
haddock-api/src/Haddock/Types.hs
+0
-5
0 additions, 5 deletions
haddock-api/src/Haddock/Types.hs
with
0 additions
and
37 deletions
haddock-api/src/Haddock/GhcUtils.hs
+
0
−
32
View file @
b89d1c24
...
...
@@ -35,13 +35,6 @@ import Class
moduleString
::
Module
->
String
moduleString
=
moduleNameString
.
moduleName
lookupLoadedHomeModuleGRE
::
GhcMonad
m
=>
ModuleName
->
m
(
Maybe
GlobalRdrEnv
)
lookupLoadedHomeModuleGRE
mod_name
=
withSession
$
\
hsc_env
->
case
lookupUFM
(
hsc_HPT
hsc_env
)
mod_name
of
Just
mod_info
->
return
(
mi_globals
(
hm_iface
mod_info
))
_not_a_home_module
->
return
Nothing
isNameSym
::
Name
->
Bool
isNameSym
=
isSymOcc
.
nameOccName
...
...
@@ -123,26 +116,11 @@ isUserLSig (L _(TypeSig {})) = True
isUserLSig
(
L
_
(
ClassOpSig
{}))
=
True
isUserLSig
_
=
False
isTyClD
::
HsDecl
a
->
Bool
isTyClD
(
TyClD
_
)
=
True
isTyClD
_
=
False
isClassD
::
HsDecl
a
->
Bool
isClassD
(
TyClD
d
)
=
isClassDecl
d
isClassD
_
=
False
isDocD
::
HsDecl
a
->
Bool
isDocD
(
DocD
_
)
=
True
isDocD
_
=
False
isInstD
::
HsDecl
a
->
Bool
isInstD
(
InstD
_
)
=
True
isInstD
_
=
False
isValD
::
HsDecl
a
->
Bool
isValD
(
ValD
_
)
=
True
isValD
_
=
False
...
...
@@ -156,11 +134,6 @@ declATs _ = []
pretty
::
Outputable
a
=>
DynFlags
->
a
->
String
pretty
=
showPpr
trace_ppr
::
Outputable
a
=>
DynFlags
->
a
->
b
->
b
trace_ppr
dflags
x
y
=
trace
(
pretty
dflags
x
)
y
-------------------------------------------------------------------------------
-- * Located
-------------------------------------------------------------------------------
...
...
@@ -173,11 +146,6 @@ unL (L _ x) = x
reL
::
a
->
Located
a
reL
=
L
undefined
before
::
Located
a
->
Located
a
->
Bool
before
=
(
<
)
`
on
`
getLoc
-------------------------------------------------------------------------------
-- * NamedThing instances
-------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
haddock-api/src/Haddock/Types.hs
+
0
−
5
View file @
b89d1c24
...
...
@@ -268,11 +268,6 @@ noDocForDecl :: DocForDecl name
noDocForDecl
=
(
Documentation
Nothing
Nothing
,
Map
.
empty
)
unrenameDocForDecl
::
DocForDecl
DocName
->
DocForDecl
Name
unrenameDocForDecl
(
doc
,
fnArgsDoc
)
=
(
fmap
getName
doc
,
(
fmap
.
fmap
)
getName
fnArgsDoc
)
-----------------------------------------------------------------------------
-- * Cross-referencing
-----------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment