I am trying to write a piece of code that will allow me to get a boolean response as to weather two coordinates are adjacent.

Coordinates "Coord" have been defied as integers. This is from a prior function tht takes x coord and y coord and returns an integer.

I understand what needs to be done here. The function will need to check that the integers correlate to adjacent coordinates. My problem is trying to find a way to express that.

What I have so far is this: (not sure if it is correct or not.

isNeighbouringCoord :: Coord -> Coord -> Bool isNeighbouringCoord m n | m == n = False

Any help will be greatly appreciated. Thanks =]