summaryrefslogtreecommitdiff
path: root/Biz/Namespace.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-08-17 21:21:07 -0400
committerBen Sima <ben@bsima.me>2023-08-17 22:44:04 -0400
commitaac50fb4a0eea25a057bb2d7ebe80961c542a2a5 (patch)
treeb6e6a26cd7dec9937003aa33ec6f0875be2ee99d /Biz/Namespace.hs
parentcc6aac612e36da3c9b9b4e47fc16ed512a79f2d9 (diff)
Nixify C build
This is working with libsodium as an example. Its unfortunate that we need the extra ':arg -lsodium' but how else can I get the name of the library for linking? Is that something in the nix attr metadata? Anyway, an optimization for another day.
Diffstat (limited to 'Biz/Namespace.hs')
-rw-r--r--Biz/Namespace.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Biz/Namespace.hs b/Biz/Namespace.hs
index c811554..6d099fd 100644
--- a/Biz/Namespace.hs
+++ b/Biz/Namespace.hs
@@ -91,6 +91,7 @@ toModule (Namespace parts Hs) = joinWith "." parts
toModule (Namespace parts Py) = joinWith "." parts
toModule (Namespace parts Scm) = "(" ++ joinWith " " parts ++ ")"
toModule (Namespace parts Rs) = joinWith "::" parts
+toModule (Namespace parts C) = joinWith "/" parts <> ".c"
toModule (Namespace {..}) = panic <| "toModule not implemented for " <> show ext
toHaskellModule :: Namespace -> String