Skip to content

GHC.Utils.Misc.only doesn't pass an empty list exception

Summary

GHC.Utils.Misc.only doesn't pass an empty list exception

Steps to reproduce

  1. Open ghci with the command "ghci -package ghc" to enable use of the GHC libraries.
  2. Enter "only []"
  3. Observe error

Expected behavior

Report "Exception: GHC.Utils.Misc.only: empty list".

Environment

  • GHC version used: 9.0.1

Optional:

  • Operating System: Debian 11 (bookworm)
  • System Architecture: x86_64 / amd64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information