I keep getting a Couldn't match expected type Card with actual type [Card] in the first argument of getnumfrmcard (xs) and second argument of (<) namely getnumfrmcard(xs) in the function straight(checks to see if a hand of a cards is a straight)
enter code here
data Card = Cards (Suit,Face) deriving (Eq)
data Hand= Hands[Card]
straight:: Hand->Bool
straight (Hands [] ) =True
straight (Hands (x:xs) )
| null(xs)==True = True
| getnumfrmcard (x) < getnumfrmcard (xs) =straight (Hands xs)
| otherwise = False