Skip to content
Snippets Groups Projects
Commit af000532 authored by Moritz Schuler's avatar Moritz Schuler Committed by Marge Bot
Browse files

Fix parsing of module names in CLI arguments

  closes issue #24732
parent 06f7db40
No related branches found
No related tags found
No related merge requests found
......@@ -56,5 +56,5 @@ moduleNameColons = dots_to_colons . moduleNameString
parseModuleName :: Parse.ReadP ModuleName
parseModuleName = fmap mkModuleName
$ Parse.munch1 (\c -> isAlphaNum c || c `elem` "_.")
$ Parse.munch1 (\c -> isAlphaNum c || c `elem` "_.'")
import P'
main :: IO ()
main = printf "Hello World\n"
\ No newline at end of file
Hello World
......@@ -223,3 +223,4 @@ test('T22478a', req_th, compile, [''])
test('RecordWildCardDeprecation', normal, multimod_compile, ['RecordWildCardDeprecation', '-Wno-duplicate-exports'])
test('T14032b', normal, compile_and_run, [''])
test('T14032d', normal, compile, [''])
test('T24732', normal, compile_and_run, ['-package "base(Prelude, Text.Printf as P\')"'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment