Configure hi2

Resolves #356
Merge branch 'haskell-hi2'
hi2 contrib compat