In this segment of code my compiler throws parse error on input for the line
tuple_up parsed_int list_of_points
and
let new_point = ((fst last_point), (snd last_point) + 1)
From previous posts on these errors they recommended checking the preceding whitespace, which I did. All the lines are correctly indented with tabs. It seems this problem has to do with things after the first "let" line?
go_up :: [String] -> [(Int, Int)]
go_up string_path list_of_points =
let parsed_int = parse_current string_path
tuple_up parsed_int list_of_points
tuple_up :: Int -> [String] -> [(Int, Int)]
tuple_up 0 list_of_points = list_of_points
tuple_up increment list_of_points =
let last_point = tail list_of_points
let new_point = ((fst last_point), (snd last_point) + 1)
let new_list_of_points = list_of_points ++ new_point
tuple_up (increment - 1) new_list_of_points
let ... in ..., only in adoblock you do not write anin