Skip to content

GHC.Exts.TYPE isn't re-exported by default when re-exporting the module

Summary

When writing a custom Prelude, exporting the TYPE type is only possible explicitly. I doesn't get exported together with the module re-export.

Steps to reproduce

module Prelude (
    module GHC.Exts, -- broken, should work
    TYPE -- working
    ...
) where

import GHC.Exts (TYPE)
...

Expected behavior

The TYPE type should be re-exported with the module

Environment

  • GHC version used: 9.2.2

Optional:

  • Operating System: NixOS / Haskell.nix
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information