I am new to Haskell and trying to write a simple understanding of a list and assign it to a variable. Here is my haskell.hs file:
--find all multiples of 3 and 5 under 1000 multiples :: [Int] let multiples = [x | x <- [1..1000], (x `mod` 5 == 0) || (x `mod` 3 == 0)]
then when I try to compile a program using ghc haskell.hs , I get the following error:
haskell.hs:12:1: parse error (possibly incorrect indentation or mismatched brackets)
Hello!
source share