[GHC] #10855: GHC rejects code that Haskell 2010 report accepts