haskell/cabal — pull request #1748 by ianbollinger (2014-04-02 14:38:58+00:00)
Title: Fix #1569.

* Change `guessPackageName` to translate arbitrary strings into valid
package names.
* Change type of `packageName` flag from String to PackageName and
reject names that do not pass PackageName's corresponding parse
function.