I cant compile this part of code:
game a = let
gameBoard ++ a
black = test a colors
white = (test2 a colors) - black
createScore black white
in
merge gameBoard score
geting: Syntax error in declaration (unexpected `}', possibly due to bad layout)
Thanks for help.
}anywhere...gameBoard ++ a??}shows up unexpectedly (and not very newbie-friendly) in error messages because indentation blocks in Haskell are nominally syntactic sugar for explicit{;}s. It really means that an indentation block ended before it was complete.