[Haskell-cafe] Re: specialization in type classes

2009-06-05 Thread Cetin Sert
Now there's also a stackoverflow question for this: http://stackoverflow.com/questions/955711/specialization-in-type-classes-using-ghc Any help highly appreciated! 2009/6/5 Cetin Sert cetin.s...@gmail.com module IOStream where import System.IO import System.IO.Unsafe class Out a where

Re: [Haskell-cafe] Re: specialization in type classes

2009-06-05 Thread Ryan Ingram
The SPECIALIZE pragma doesn't do what you think; those implementations are already as specialized as they get. You can enable OverlappingInstances, but the big problem is that it doesn't really work; consider this function: foo :: Show a = a - String foo x = out x question = foo hello What