aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/write.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.config/write.ccm')
-rw-r--r--nihil.config/write.ccm11
1 files changed, 7 insertions, 4 deletions
diff --git a/nihil.config/write.ccm b/nihil.config/write.ccm
index 71cdbb3..1a07dd7 100644
--- a/nihil.config/write.ccm
+++ b/nihil.config/write.ccm
@@ -4,16 +4,19 @@
module;
+#include <expected>
#include <filesystem>
+import nihil;
+
export module nihil.config:write;
-namespace nihil::config {
+export namespace nihil::config {
/*
- * Write all config values (except defaults) to disk. Throws config::error
- * on failure.
+ * Write all config values (except defaults) to disk.
*/
-auto write_to(std::filesystem::path const &filename) -> void;
+auto write_to(std::filesystem::path const &filename) ->
+ std::expected<void, nihil::error>;
};