Use applicatives instead of monads in LmodPackage.