Hadrian: Make makeRelativeNoSysLink total
authorMatthew Pickering <matthewtpickering@gmail.com>
Sun, 10 Mar 2019 17:36:32 +0000 (17:36 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 12 Mar 2019 13:04:52 +0000 (09:04 -0400)
commit705fa21d674a5a799712346e01033db98b16e71d
treed8ba5f033336c62968c81c1b71e5180cb8b232db
parent61264556d5c817b55332a199b03fa1f559e92ee2
Hadrian: Make makeRelativeNoSysLink total

makeRelativeNoSysLink would previously crash for no reason if the first
argument as `./` due to the call to `head`. This refactoring keeps the
behaviour the same but doesn't crash in this corner case.
hadrian/src/Hadrian/Utilities.hs