Error haskell: not in scope. What does that mean?
问题 I started with Haskell today and all the functions I perform on ghci display this message. I just want to know why this is happening. I know there are a lot of questions about this, but this is a simple case and I need to understand this error in the beginning function3 :: Int -> [Int] function3 x = [a | a <- [1..x] mod a x == 0] 回答1: Did error happen when you type the function type in GHCi? $ ghci GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help Prelude> function3 :: Int -> [Int]