Show (Set a)

Serge D. Mechveliani mechvel at
Sat Nov 8 14:44:53 EST 2003

Dear GHC developers,

In my user program I define

  instance Show a => Show (Set a) 
    showsPrec x = showsPrec x . setToList

  instance (Show a, Show b) => Show (FiniteMap a b)
    showsPrec x = showsPrec x . fmToList

On the other hand, is not this natural for the GHC library to 
provide such instances?

(add, please,  mechvel at  to the respond list)

Serge Mechveliani
mechvel at

More information about the Glasgow-haskell-users mailing list