As my first module experience, I imported Data.List to my GHCi. (More precisely, I typed import Data.List on my GHCi) It seems to be working fine because I can use some functions that I did not have before such as foldl' on my GHCi.
I wrote haha = foldl' (+) 0 [1..10] on my notepad++, and saved it and loaded then GHCi says Not in scope: foldl' even though it workds just fine when I type foldl' (+) 0 [1..10] directly on my GHCi.
Why is that and how can I define functions with foldl' on my notepad?