CHAPTER FOUR –– THE BILL OF RIGHTS
Part 2—Rights and fundamental freedoms
51. Rights of persons detained, held in custody or imprisoned.
(2) A person who is detained or held in custody is entitled to petition for an order of habeas corpus.
Fair trial standards
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.