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
Ara Adkins
Glasgow Haskell Compiler
Commits
34b106f6
Commit
34b106f6
authored
Sep 03, 2015
by
Edward Z. Yang
Browse files
Accept underscores in the module parser. (Thanks spinda for the fix.)
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
5dc88b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/DynFlags.hs
View file @
34b106f6
...
...
@@ -3718,7 +3718,7 @@ clearPkgConf = upd $ \s -> s { extraPkgConfs = const [] }
parseModuleName
::
ReadP
ModuleName
parseModuleName
=
fmap
mkModuleName
$
munch1
(
\
c
->
isAlphaNum
c
||
c
`
elem
`
"."
)
$
munch1
(
\
c
->
isAlphaNum
c
||
c
`
elem
`
"
_
."
)
parsePackageFlag
::
(
String
->
PackageArg
)
-- type of argument
->
String
-- string to parse
...
...
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