Haskell は初めてで、単純なリスト内包表記を作成して変数に代入しようとしています。これが私のhaskell.hs
ファイルです:
--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)]
次に、プログラムをコンパイルしようとするとghc haskell.hs
、次のエラーが発生します。
haskell.hs:12:1:
parse error (possibly incorrect indentation or mismatched brackets)
よろしく!