i have been trying to write a function that shows that left association is the same as right association. basically meaning that (x, (y, z)) is the same as ((x, y), z), and vice versa, for this case. i have tried using let and in logic but that didnt work. so far i have
lAssociation :: (a, (b, c)) -> ((a, b), c)
lAssociation (a, b) = ((a, fst b), snd b)
but i get a parse error for some reason. I'm not sure what I am missing. I am new to haskell and want to understand so any help, suggestions, or advice is greatly appreciated