georgefst
  • Joined on 2025-09-02
georgefst pushed to dev at georgefst/garnet 2026-04-15 11:27:51 +00:00
352d2e6208 debug wip
cf9e36e9df bump to hs-bindgen and libclang to latest...
e20348c2b3 file dependency reload stuff
5dd82fabc3 basic enum example
d3cb3a837c Use lambdas in all wrappers for consistency
Compare 21 commits »
georgefst pushed to dev at georgefst/garnet 2026-04-14 00:46:33 +00:00
346e558e0a debug wip
ce742e4763 bump to hs-bindgen and libclang to latest...
15187cd760 file dependency reload stuff
16f75fef9b basic enum example
2d2d29b7a5 Use lambdas in all wrappers for consistency
Compare 21 commits »
georgefst pushed to dev at georgefst/garnet 2026-04-14 00:44:30 +00:00
3235165797 debug wip
7a07808115 bump to hs-bindgen and libclang to latest...
23f732cabf file dependency reload stuff
7105ad0fd5 basic enum example
4f57e96071 Use lambdas in all wrappers for consistency
Compare 21 commits »
georgefst pushed to dev at georgefst/garnet 2026-04-13 23:45:26 +00:00
4a8a3750fe basic enum example
7853204758 Use lambdas in all wrappers for consistency
a9c69c4927 Add maybe/optional example
14e0e85823 Add vector/slice example
ca99358747 Remove unnecessary Rust unit return type annotations
Compare 19 commits »
georgefst pushed to dev at georgefst/garnet 2026-04-13 14:50:18 +00:00
c1d30b0e61 refactor
ea5f816425 basic enum example
5c3aa088f7 Add maybe/optional example
6203e7570f Add vector/slice example
9e8bccdafd Pass all non-primitive types by (immutable) reference
Compare 8 commits »
georgefst pushed to dev at georgefst/garnet 2026-03-30 21:44:38 +00:00
7bbba202af basic enum example
209f674541 wip file dependency reload stuff
Compare 2 commits »
georgefst pushed to dev at georgefst/garnet 2026-03-30 12:07:51 +00:00
352bf8c286 basic enum example
091c70815c wip file dependency reload stuff
111b65c708 format
a06f3076c7 clippy fixes
7d9982112a maybe/optional example
Compare 12 commits »
georgefst created branch dev in georgefst/garnet 2026-03-25 13:13:37 +00:00
georgefst pushed to dev at georgefst/garnet 2026-03-25 13:13:37 +00:00
0c70b2a3f7 maybe/optional example
c735ffb4f3 minor refactor for consistency (maybe we should go the other way given sumSlice...)
8847012bbc vector/slice example
9417c06574 pass by (immutable) reference for all non-primitive types
32de67723b dedup base dep
Compare 9 commits »
georgefst commented on pull request georgefst/garnet#1 2026-03-24 22:43:14 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

This is kind of irrelevant now that we're about to bump to HEAD anyway in order to make use of some new features.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 22:42:11 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

And actually, having the flake inputs be the source of truth is quite convenient, as I've just realised when running nix flake update hs-bindgen-src for the first time. Cabal has no equivalent CLI.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

The examples somehow avoid flake-utils. We should perhaps try to do the same.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

Oh, actually, they're just hardcoding x86_64-linux.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

I was hoping that these might just be picked up automatically from cabal.project. Haskell.nix does do this, but then Cabal in the shell insists on building the libraries again itself anyway, which to be fair doesn't happen with this approach. See issue.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

These two don't seem to be working.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

Matching to old cabal.project for now, but we should probably just let flake.lock do the pinning. Main thing is I've forgotten how exactly to set a specific commit with nix flake update... Actually to be honest at this point we could probably just use the latest HEAD anyway.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

This should just be haskell.shell. Patched to avoid an annoying warning on entering nix develop shell:

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:19:45 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

To be fair, I don't think I tried withHaddock or equivalent with plain Haskell.nix, so my expectations may be wrong.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:13:29 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

To be fair, I don't think I tried withHaddock or equivalent with plain Haskell.nix, so my expectations may be wrong.

georgefst commented on pull request georgefst/garnet#1 2026-03-24 16:08:20 +00:00
Use nix-haskell and provide source-repository-packages to Cabal in shell

Oh, actually, they're just hardcoding x86_64-linux.

Still, maybe I should look at using plain genAttrs instead. I know this is tricky with Haskell.Nix as it requires transposing the two…