A.hs:1:16: error: parse error on input ‘where’ :25:1: error: Variable not in scope: yan Suggested fix: Perhaps use ‘tan’ (imported from Prelude) A.hs:1:16: error: parse error on input ‘where’