Fix build breakage by adding HaskellElementFactory.