Add compatibility with GHC 8.2
Add compatibility with GHC 8.2

Changes taken from this commit:

    https://github.com/hdevtools/hdevtools/commit/0370d30b4703d3c2e49bec7e739eafa96d1fd698

Credit goes to:

    https://github.com/ch1bo

bitc/hdevtools