fixed for ghc version >= 7.6
added description