Hello, I have to need to write a function which counts each letter from the string and returns the number of characters as the float number of each of the characters is 0.3 and adds it to the time.
data Fun =
Word String Fun
| Num Int Fun
| Finish
deriving Show
this is my function which I define. I do not know what to do next. I am stuck on it I need to first count the Word each character is 0.3 and then add it to the int and return it as the float number. Any kind of suggestion. or help
count :: Fun → Float