以下を考えると、
module Foo where
main = do
let foo = case 0 of
0 -> 4
return ()
GHC は、構文エラーがあると主張しています。
Make.hs:5:5: parse error (possibly incorrect indentation)
なんで?私は Haskell をしばらく使用してきましたが、私には正しいように見えます。
以下を考えると、
module Foo where
main = do
let foo = case 0 of
0 -> 4
return ()
GHC は、構文エラーがあると主張しています。
Make.hs:5:5: parse error (possibly incorrect indentation)
なんで?私は Haskell をしばらく使用してきましたが、私には正しいように見えます。