Workaround for GHC issue 8825.

See https://ghc.haskell.org/trac/ghc/ticket/8825.