Any of a group of glycosaminoglycans consisting of alternating residues of glucosamine and hexuronic acid, usually attached to a protein forming a proteoglycan. Heparan sulphates accumulate in a group of inherited metabolic disorders known as mucopolysaccharidoses.