Split Primitives.hs into separate files