From c735ffb4f3a40d6d7682ba282944cbd5bf440382 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Wed, 25 Mar 2026 01:50:36 +0000 Subject: [PATCH] minor refactor for consistency (maybe we should go the other way given sumSlice...) --- lib/GarnetRs/Wrapped.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GarnetRs/Wrapped.hs b/lib/GarnetRs/Wrapped.hs index e62260d..d62310c 100644 --- a/lib/GarnetRs/Wrapped.hs +++ b/lib/GarnetRs/Wrapped.hs @@ -57,7 +57,7 @@ withBTree = Raw.Fork_Body (unsafeFromPtr lPtr) (unsafeFromPtr rPtr) hello :: ByteString -> IO () -hello s = useAsCString s $ Raw.hello . unsafeFromPtr +hello = flip useAsCString $ Raw.hello . unsafeFromPtr helloStruct :: T -> IO () helloStruct = flip with (Raw.hello_struct . unsafeFromPtr) . convertT