| |
comp.lang.haskell |
import Data.Set as Set ( Set, fromList, toList ) test = fromList [fromList [1,2],fromList [3]] Then 'show test' will result in the following string: What I want is something like "[[1,2],[3]]" instance (Show a) => Show (Set a) where -> ERROR Overlapping instances for class "Show"
"fromList [fromList [1,2],fromList [3]]"
Is there a way to overwrite the implementation of the show function?
show x = toList x