有没有办法创建嵌套控件结构?例如我试过这个.但我得到了错误.
bmiTell :: (RealFloat a) => a -> String
bmiTell bmi = if bmi <= 18.5 then if bmi==16.0 then "asdasdasdsad"
else if bmi <= 25.0 then "You're supposedly normal. Pffft, I bet you're ugly!"
else if bmi <= 30.0 then "You're fat! Lose some weight, fatty!"
else "You're a whale, congratulations!"
Run Code Online (Sandbox Code Playgroud)