I want to put together a runnable script and a class to include from a separate module.
If I put the class into the script like this, it works.
#!/usr/bin/env swift
class HelloWorld {
func greet() {
print("Hello World")
}
}
var h = HelloWorld()
h.greet()
However, when I put the HelloWorld class into a HelloWorld.swift module, I have found no solution to get it to work.