The instances (and deriving declarations) have been taken from the ghc-syb package.
Attach a file by drag & drop or click to upload