Skip to content

Commit

Permalink
allow underscores in arch names
Browse files Browse the repository at this point in the history
Stops it barfing on arch(x86_64).
  • Loading branch information
Ross Paterson committed Mar 26, 2008
1 parent c77ab79 commit 37fb5cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Distribution/System.hs
Expand Up @@ -88,7 +88,8 @@ instance Text Arch where
disp (OtherArch name) = Disp.text name
disp other = Disp.text (lowercase (show other))

parse = fmap classifyArch (Parse.munch1 Char.isAlphaNum)
parse = fmap classifyArch (Parse.munch1 isIdentChar)
where isIdentChar c = Char.isAlphaNum c || c == '_'
--TODO: probably should disallow starting with a number

classifyArch :: String -> Arch
Expand Down

0 comments on commit 37fb5cd

Please sign in to comment.