Section 10 of the Charter states that when arrested or detained, everyone has the right to be informed of the reasons, to retain and instruct counsel and to be informed of that right, and to have the validity of the detention determined by writ of habeas corpus