It's probably fair to say that on balance this is being seen as a victory for Ireland. 

There's a lot of comfort in here for the Government. 

In fact there's a line in the text of the deal which refers to an all-island economy which, I think, reflects the Government's more maximalist interpretation of the Good Friday Agreement and what it has brought about - namely peace and prosperity at an all-island level.

The other thing to note is that Irish issues will be carried in to Phase 2 - the phase about the future trading relationship between the EU and the UK so Irish concerns will be a separate strand of that.

And the key point to remember is that, if at any point the Government feels that that UK is backsliding on its commitment to avoid a hard border, then it can reflect that in the way that the negotiating guidelines are updated as we get through Phase 2 and into the future framework negotiations.

So I think that all told this is a fairly comforting piece of work and text for the Irish Government.

Then there's the point that European Council President Donald Tusk made when he said breaking up is hard to do, but working out a new relationship with your ex is even harder. 

Of course it will be difficult for the UK because they are going to have to get into a transition period now where they are going to have to swallow all the rules of the EU - they have to pay into the budget, they have to abide by the European Court of Justice. 

The other thing I think that this whole text points towards is, that if there's going to be full alignment in Northern Ireland there's going to have to be full alignment across the UK and full alignment to the EU rules in terms of the Single Market and the Customs Union and that will surely constrain Britain's ambitions when it's trying to do Free Trade Agreements with the rest of the world.