From 31ae16784afb1d789e99c3f20fc7a6f2bca99057 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 c3a68b4..665ab4a 100644 --- a/lib/GarnetRs/Wrapped.hs +++ b/lib/GarnetRs/Wrapped.hs @@ -56,7 +56,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