importqualifiedData.Map.StrictasMcoffees=M.fromList[(2.2,"Americano"),(2.3,"Latte"),(2.4,"Flat white"),(3.5,"Filter")]coffee::Double->Stringcoffeeprice=letmaybeName=M.lookuppricecoffeesincasemaybeNameofNothing->"Sorry, exact change only. Try again tomorrow!"Justname->"Here is your "++name++", have a nice day!"
Haskell
Am I missing something or is the import of
isJust
a leftover from a previous version, i.e. did you have anif
instead of the match expression before?You are correct. I edited my original comment.