ErrUtils: Refactor dump file logic
authorBen Gamari <ben@smart-cactus.org>
Wed, 22 Nov 2017 03:57:27 +0000 (22:57 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 22 Nov 2017 04:00:34 +0000 (23:00 -0500)
commit2d1c671cb1ad477ee8e993398b6bb43628102c35
tree613638a43e74f1fb92c34b3eb2867dfc460e769a
parent7a73a1cdf1c6dfa87f3a54a0576b36677af8d9d8
ErrUtils: Refactor dump file logic

This refactors the dump file setup path, separating concerns a bit. It also
fixes an exception-unsafe usage of openFile.
compiler/main/ErrUtils.hs