moving codes from .lhs to .hs because its better that way
fixing up how haddocks look for the sparse layouts module