totalPrice :: Product -> Integer -> Float
totalPrice product x = case product of
Ramen
| x <= 10 -> 2 * x
| x <= 30 -> 1.8 * x
| x <= 100 -> 1.5 * x
| x <= 200 -> 1.4 * x
| x > 200 -> 1.35 * x
| otherwise -> 0
Chips
| x <= 2 -> 3 * x
| x <= 5 -> 2.95 * x
| x <= 10 -> 2.7 * x
| x <= 20 -> 2.5 * x
| x > 20 -> 2.35 * x
| otherwise -> 0
When I compile this code it get error "Couldn't match expected type ‘Double’ with actual type ‘Integer’"
Any suggestions?