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