about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--cmd/hare-gi/main.ha3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/hare-gi/main.ha b/cmd/hare-gi/main.ha
index ec4cfe9..a02d5b0 100644
--- a/cmd/hare-gi/main.ha
+++ b/cmd/hare-gi/main.ha
@@ -2,6 +2,7 @@ use fmt;
 use fs;
 use getopt;
 use gir;
+use hare::parse;
 use io;
 use os;
 use strings;
@@ -74,7 +75,7 @@ export fn main() void = {
 			case null =>
 				fmt::fatalf("No such namespace '{}'", ns);
 			};
-			ns.module = strings::split(module, "::")!;
+			ns.module = parse::identstr(module)!;
 			if (len(output) > 0) {
 				match (os::create(output, fs::mode::USER_RW)) {
 				case let f: io::file =>