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
671dfe67
Commit
671dfe67
authored
Jun 15, 2002
by
sof
Browse files
[project @ 2002-06-15 12:05:13 by sof]
Accept empty package lists.
parent
6dcb16bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/ParsePkgConf.y
View file @
671dfe67
...
...
@@ -32,7 +32,8 @@ import Exception ( throwDyn )
%%
pkgconf :: { [ PackageConfig ] }
: '[' pkgs ']' { reverse $2 }
: '[' ']' { [] }
| '[' pkgs ']' { reverse $2 }
pkgs :: { [ PackageConfig ] }
: pkg { [ $1 ] }
...
...
ghc/utils/ghc-pkg/ParsePkgConfLite.y
View file @
671dfe67
...
...
@@ -28,7 +28,8 @@ import List(break)
%%
pkgconf :: { [ PackageConfig ] }
: '[' pkgs ']' { reverse $2 }
: '[' ']' { [] }
| '[' pkgs ']' { reverse $2 }
pkgs :: { [ PackageConfig ] }
: pkg { [ $1 ] }
...
...
@@ -45,7 +46,7 @@ field :: { PackageConfig -> PackageConfig }
: VARID '=' STRING
{\p -> case $1 of
"name" -> p{name = $3}
_ -> error "unkown key in config file" }
_ -> error "unk
n
own key in config file" }
| VARID '=' strlist
{\p -> case $1 of
...
...
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