haskell/cabal — pull request #1140 by byorgey (2012-12-09 00:56:13+00:00)
Title: cabal init: parse module names with simpleParse instead of fromString

fromString crashes when given an invalid module name so this was causing cabal init to crash if you happened to have directories containing code that weren't valid module names (e.g. containing hyphens). See #1052. This commit fixes cabal init to deal with invalid module names properly.