HALIFAX -- A police officer who was stabbed twice outside a homeless shelter in downtown Halifax has been released from hospital.

Halifax Regional Police say a 31-year-old man is due in provincial court Monday to face charges including attempted murder, aggravated assault and assaulting a police officer.

The officer, a constable who has been with the force for six years, was rushed to hospital Friday night after he was wounded in the neck and forearm.

Two officers went to the Metro Turning Point shelter at around 8:30 p.m. to arrest a suspect wanted on an arrest warrant.

Investigators say the man was spotted on the steps outside the emergency shelter, but he fled when he saw police.

Const. Pierre Bourdages says the man later turned on one of the officers and stabbed him in the neck.

Bourdages says the man was later Tasered by the other officer and taken into custody and a knife was recovered at the scene.

Bourdages says the suspect failed to appear in court Friday on a charge of assault with a weapon and police learned that he was at the shelter.