1 2 3 4 5
nextPositionsN :: Board -> Int -> (Board -> Bool) -> [Board] nextPositionsN b n pred = filter pred (helper [b] n) where helper x 0 = x helper x n | n > 0 = helper (x >>= nextPositions) (n - 1) | otherwise = []
1 2
Error occurred ERROR line 1 - Undefined type constructor "Board"