projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 2005-02-02 13:47:24 by simonpj]
[ghc-base.git]
/
Data
/
Generics
/
Schemes.hs
diff --git
a/Data/Generics/Schemes.hs
b/Data/Generics/Schemes.hs
index
c783d4a
..
5234b01
100644
(file)
--- a/
Data/Generics/Schemes.hs
+++ b/
Data/Generics/Schemes.hs
@@
-157,7
+157,7
@@
gtypecount (_::a) = gcount (False `mkQ` (\(_::a) -> True))
-- | Find (unambiguously) an immediate subterm of a given type
-gfindtype :: (Data x, Data y) => x -> Maybe y
+gfindtype :: (Data x, Typeable y) => x -> Maybe y
gfindtype = singleton
. foldl unJust []
. gmapQ (Nothing `mkQ` Just)