One more thing.

  If your Read/Show instances are created by

data (or newtype) ...
  deriving (Read,Show)

then read . show will do the right thing.

Thomas.

Am 7. Dezember 2008 14:11 schrieb John Ky <[EMAIL PROTECTED]>:
> Hi,
>
> Is there a way to read Showables?
>
> main = do
>     putStrLn $ show $ read
>
> Thanks
>
> -John
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to