Fix redundant import on Alpine
The current Alpine build fails because of redundant imports:
https://gitlab.haskell.org/ghc/ghc/-/jobs/1152259
The additional condition is needed because of:
The current Alpine build fails because of redundant imports:
https://gitlab.haskell.org/ghc/ghc/-/jobs/1152259
The additional condition is needed because of: