Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
673b1bec
Commit
673b1bec
authored
Mar 27, 2012
by
dreixel
Browse files
Remove dead code
RdrHsSyn.extractGenericPatTyVars was a leftover from the old generic classes.
parent
bcb59950
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/RdrHsSyn.lhs
View file @
673b1bec
...
...
@@ -6,7 +6,7 @@ Functions over HsSyn specialised to RdrName.
\begin{code}
module RdrHsSyn (
extractHsTyRdrTyVars,
extractHsRhoRdrTyVars,
extractGenericPatTyVars,
extractHsRhoRdrTyVars,
mkHsOpApp,
mkHsIntegral, mkHsFractional, mkHsIsString,
...
...
@@ -151,17 +151,6 @@ extract_lty (L loc ty) acc
extract_tv :: SrcSpan -> RdrName -> [Located RdrName] -> [Located RdrName]
extract_tv loc tv acc | isRdrTyVar tv = L loc tv : acc
| otherwise = acc
extractGenericPatTyVars :: LHsBinds RdrName -> [Located RdrName]
-- Get the type variables out of the type patterns in a bunch of
-- possibly-generic bindings in a class declaration
extractGenericPatTyVars binds
= nubBy eqLocated (foldrBag get [] binds)
where
get (L _ (FunBind { fun_matches = MatchGroup ms _ })) acc = foldr (get_m.unLoc) acc ms
get _ acc = acc
get_m _ acc = acc
\end{code}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment