This looks like a GHCi bug.
Load a file with these two lines into GHCi
instance Show Test where -- No body to the instance statement
Then enter Test at the prompt.
This seems to bomb GHCi. It isn't even interruptible but must be shut down and restarted.
-- Russ