Skip to content

Commit

Permalink
add a couple CTYPE pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Nov 15, 2023
1 parent ac874d2 commit 3e563d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions termbox-bindings-c/src/Termbox/Bindings/C.hs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ foreign import capi unsafe "termbox.h tb_width"
-- Objects

-- | A cell.
data Tb_cell = Tb_cell
data {-# CTYPE "termbox.h" "struct tb_cell" #-} Tb_cell = Tb_cell
{ -- | A unicode character.
ch :: {-# UNPACK #-} !Word32,
-- | Foreground attribute.
Expand Down Expand Up @@ -304,7 +304,7 @@ instance Storable Tb_cell where
Storable.pokeByteOff ptr 6 bg

-- | An event.
data Tb_event = Tb_event
data {-# CTYPE "termbox.h" "struct tb_event" #-} Tb_event = Tb_event
{ type_ :: {-# UNPACK #-} !Word8,
mod :: {-# UNPACK #-} !Word8,
key :: {-# UNPACK #-} !Word16,
Expand Down

0 comments on commit 3e563d4

Please sign in to comment.