I am training in haskell and I would like to understand where I did go wrong.
The error is the infamous "variable not in scope"
The context is to determine if a sentence is a pangram. A pangram (Greek: παν γράμμα, pan gramma, "every letter") is a sentence using every letter of the alphabet at least once.
For example:
The quick brown fox jumps over the lazy dog.
Here is the code:
module Pangram (isPangram) where
isFalse n = n == False
transformText :: String -> [Bool]
transformText text = [letter elem alphabet | letter <-text] where alphabet = "abcdefghijklmnopqrstuvwxyz"
isPangram :: String -> Bool
isPangram [] = False
isPangram text = case test of
Just _ -> False
Nothing -> True
where test = find isFalse (transformText text)