Skip to content
Snippets Groups Projects
Commit b5b29f12 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Parse extension names in .cabal files using Text rather than Read

This means we can now parse unknown extensions without falling over.
Indeed if the compiler supports the unknown extension then we can
even successfully use it. This gives us some forwards compatability
for new extensions.
parent 34abe1d0
No related branches found
No related tags found
No related merge requests found
......@@ -563,7 +563,7 @@ parseLicenseQ = parseQuoted parse <++ parse
-- Hence the trick above to make 'lic' polymorphic.
parseExtensionQ :: ReadP r Extension
parseExtensionQ = parseQuoted parseReadS <++ parseReadS
parseExtensionQ = parseQuoted parse <++ parse
parseTokenQ :: ReadP r String
parseTokenQ = parseReadS <++ munch1 (\x -> not (isSpace x) && x /= ',')
......
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