Module fs.nim
proc read(path: string): string = "some content"
Module base.nim
from ./fs import nil
# I want only the fs namespace to be exported, not its content
# export fs as fs - this doesn't work
export fs
Module play.nim
import ./base.nim
fs.read("some-file") # <= Error, no `fs`
After thinking, it's possible to rewrite fs.nim as code below, and get the desired effect
type FS* = object
const fs* = FS()
proc read(fs: FS, path: string): string = "content of some file"