@@ -1,13 +1,16 @@
1module Providers
1module Providers
3%dynamic "./nativetypes.so"
5%dynamic "./nativetypes.so"
5sizeOfSizeT : IO Int
7sizeOfSizeT : IO Int
6sizeOfSizeT = foreign FFI_C "sizeof_size_t" (IO Int)
8sizeOfSizeT = foreign FFI_C "sizeof_size_t" (IO Int)
8data NativeTypeSize = OneByte | TwoBytes | FourBytes | EightBytes
11data NativeTypeSize = OneByte | TwoBytes | FourBytes | EightBytes
10−instance Show NativeTypeSize where
13+Show NativeTypeSize where
11 show OneByte = "1 byte"
14 show OneByte = "1 byte"
12 show TwoBytes = "2 bytes"
15 show TwoBytes = "2 bytes"
13 show FourBytes = "4 bytes"
16 show FourBytes = "4 bytes"