Re: [Haskell-cafe] Usage of Read Class

2008-03-30 Thread Ariel J. Birnbaum
> > :1:1: > > Ambiguous type variable `a' in the constraint: > > `Read a' arising from a use of `read' at :1:1-4 > > Probable fix: add a type signature that fixes these type variable(s) > > What the error message says is, it doesn't know which type to read to. > read has the type Rea

Re: [Haskell-cafe] Usage of Read Class

2008-03-30 Thread Niklas Broberg
> I would like to ask something that results in when I have the following > commands > data Color = Red | Green | Blue | Indigo | Violet deriving (Enum,Show,Read) > (read.show) x > > :1:1: > Ambiguous type variable `a' in the constraint: > `Read a' arising from a use of `read' at :1:

[Haskell-cafe] Usage of Read Class

2008-03-30 Thread Simeon Mattes
Hello, I would like to ask something that results in when I have the following commands data Color = Red | Green | Blue | Indigo | Violet deriving (Enum,Show,Read) (read.show) x :1:1: Ambiguous type variable `a' in the constraint: `Read a' arising from a use of `read' at :1:1-4 Pro