GHC 7.8.3 doesn't produce warnings for the desired code, so remove workaround
Unused import: Control.Monad.when
Replace deprecated 'textP' with 'text'
Warning cleanup: ConnectionHandle does not export fields
Unused import: Data.Array.Unboxed.bounds
Specify type of constant
Unused functions 'setHostPref' and 'getHostPref' removed
Unused imports - removed
Merge pull request #10 from DaveCTurner/master

Warnings cleanup