this is my program (I realise it's not an entirely useful program):
data Temp a = Something1 | Something2 deriving (Show,Eq,Ord)
length :: Temp a -> Integer
Something1 = 0
Something2 = 1
and I keep getting the error message:
Haskellfile.lhs:3:3: The type signature for `length' lacks an accompanying binding (You cannot give a type signature for an imported value)
Can someone please help?