'instance Show' results in stack overflow
When I load the code below in ghci and run 'create :: C' the execution ends after a while with a stack overflow. However, when I delete the line 'instance Show C' and erase the '--' before 'deriving (Show)' the command 'create :: C' delivers a 'C' as I would expect it.
module Main where
data C = C --deriving (Show)[[BR]]
instance Show C
class T m where
create :: m
instance T C where
create = C