Delete hack when takeDirectory returns ""
authorThomas Miedema <thomasmiedema@gmail.com>
Tue, 23 Sep 2014 13:44:02 +0000 (08:44 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 23 Sep 2014 13:44:03 +0000 (08:44 -0500)
commit2a743bbddd4de41a77af9b83ec4720cd013292cf
tree71cbb04c5c50e50bde9ad30eb3eb50e70a0ed9ee
parent01906c7399301e4f69959ecbd3b0d8bee5d5ef70
Delete hack when takeDirectory returns ""

Summary:
Since commits 8fe1f8 and bb6731 in the filepath packages (ticket #2034, closed
in 2010), takeDirectory "foo" returns ".", and not "", so this check is no
longer needed.

Other commits:
* Remove trailing whitespace
* Update comments for #2278

Test Plan: harbormaster

Reviewers: austin

Reviewed By: austin

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D213

GHC Trac Issues: #2034
compiler/utils/Util.lhs
ghc/Main.hs