i'm newbie in haskell language. i wrote function get list of pairs as input and return list of BMI index:
calcBMI:: (RealFloat a)=> [(a,a)]->[a]
calcBMI xs = [ result | (w,h)<-xs, let bmifunc (w,h)= w/h^2; result =bmifunc (w,h) in result >=25]
when i save and :reload in ghci, error: Not in scope: `result' Failed, modules loaded: none appear. i think the list comprehension don't know what is resultwhich i have introduced in predicate of list comprehension. Please tell me why? and how to fix the problem