Skip to content
GitLab
Menu
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
1034ef27
Commit
1034ef27
authored
Jun 25, 2007
by
Simon Marlow
Browse files
follow changes in HsRecFields
parent
abbe21f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ghctags/GhcTags.hs
View file @
1034ef27
...
...
@@ -65,7 +65,7 @@ main = do
exitWith
(
ExitFailure
1
)
else
return
()
GHC
.
defaultErrorHandler
defaultDynFlags
$
do
session
<-
newSession
JustTypecheck
(
Just
ghcRootDir
)
session
<-
newSession
(
Just
ghcRootDir
)
flags
<-
getSessionDynFlags
session
(
pflags
,
_
)
<-
parseDynamicFlags
flags
ghcArgs
let
flags
=
pflags
{
hscTarget
=
HscNothing
}
-- don't generate anything
...
...
@@ -239,9 +239,9 @@ boundThings modname lbinding =
TypePat
_
->
tl
-- XXX need help here
SigPatIn
p
_
->
patThings
p
tl
SigPatOut
p
_
->
patThings
p
tl
DictPat
_
_
->
tl
conArgs
(
PrefixCon
ps
)
tl
=
foldr
patThings
tl
ps
conArgs
(
RecCon
pairs
)
tl
=
foldr
(
\
f
tl
->
patThings
(
hsRecFieldArg
f
)
tl
)
tl
pairs
conArgs
(
RecCon
(
HsRecFields
{
rec_flds
=
flds
}))
tl
=
foldr
(
\
f
tl
->
patThings
(
hsRecFieldArg
f
)
tl
)
tl
flds
conArgs
(
InfixCon
p1
p2
)
tl
=
patThings
p1
$
patThings
p2
tl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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