必要な入力は、取得した成績番号だけです。これは私がこれまでに持っているものです。
myScore x = if x > 90
then let x = "You got a A"
if 80 < x < 90
then let x = "you got a B"
if 70 < x < 80
then let x = "You got a C"
if 60 < x < 90
then let x = "you got a D"
else let x = "You got a F"
これにより、「入力 `if' の解析エラー」というエラーが表示されます。次のことも試しました。
myScore x = (if x > 90 then "You got an A" | if 80 < x < 90 then "You got a B" | if 70 < x < 80 then "You got a D" | if 60 < x < 70 then "You got a D" else "You got a F")
しかし、それもうまくいきませんでした。