(1) A person who is detained, held in custody or imprisoned under the law, retains all the rights and fundamental freedoms in the Bill of Rights, except to the extent that any particular right or a fundamental freedom is clearly incompatible with the fact that the person is 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.
(3) Parliament shall enact legislation that--
(a) provides for the humane treatment of persons detained, held in custody or imprisoned; and
(b) takes into account the relevant international human rights instruments.