minor refactor for consistency (maybe we should go the other way given sumSlice...)
This commit is contained in:
parent
8847012bbc
commit
c735ffb4f3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user