New Delhi, June 25 -- The Supreme Court today directed the Uttar Pradesh government to pay Rs 5 lakh as ad hoc compensation to a man who was kept behind bars for 28 days despite a clear bail order from the apex court.

The delay, caused by what the authorities called a "clerical error," the omission of a sub-section in the bail order was termed by the court as a gross violation of the constitutional right to liberty.

A bench of justices KV Viswanathan and NK Singh was hearing a habeas corpus matter after it emerged that the Ghaziabad jail authorities had failed to release an accused despite a Supreme Court order passed on April 29 and a formal release order dated May 27.

The man, arrested under Section 366 of the IPC and Sections 3 and 5(...