Refactoring Dist.hs for hopefully better comprehensibility.
5 patches for repository http://darcs.net/screened:
Mon Jan 30 22:23:11 CET 2012 Andreas Brandt <andreas.brandt.de@googlemail.com>
* Refactor: Use list comprehension instead of recursion
Mon Jan 30 23:03:25 CET 2012 Andreas Brandt <andreas.brandt.de@googlemail.com>
* Refactor: Use takeFileName instead of own function
Since getCurrentDirectory always gives an absolute path the check for '/'
is not necessary and takeFileName can do the job.
Mon Jan 30 23:04:55 CET 2012 Andreas Brandt <andreas.brandt.de@googlemail.com>
* Fix import of System.FilePath
To quote the documentation of System.FilePath.Posix:
"Importing System.FilePath is usually better."
Mon Jan 30 23:10:44 CET 2012 Andreas Brandt <andreas.brandt.de@googlemail.com>
* Removed unnecessary whitespace/comment
Mon Jan 30 23:27:31 CET 2012 Andreas Brandt <andreas.brandt.de@googlemail.com>
* Pull getDistName out of IO
Whoops, I see we've screened this whole bundle. We may need to rollback
the patch that switches from System.FilePath.Posix see patch716 unless
we've already switched to AnchoredPath completely and I'm just being
stupid.