summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-04-26 16:21:29 +0200
committerandromeda <andromeda@lenovo>2026-04-26 16:21:29 +0200
commitdefd967b9484a0c2af54e6f72f9d4c7f1ef59df0 (patch)
tree644a530065224d7a0d403157adeeccfc3f2960a1 /src
use template haskellHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/RGFW.hs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/RGFW.hs b/src/RGFW.hs
new file mode 100644
index 0000000..a8466df
--- /dev/null
+++ b/src/RGFW.hs
@@ -0,0 +1,30 @@
+{-# LANGUAGE CApiFFI #-}
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE DerivingStrategies #-}
+{-# LANGUAGE DerivingVia #-}
+{-# LANGUAGE EmptyDataDecls #-}
+{-# LANGUAGE ExplicitForAll #-}
+{-# LANGUAGE FlexibleContexts #-}
+{-# LANGUAGE GeneralizedNewtypeDeriving #-}
+{-# LANGUAGE MagicHash #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
+{-# LANGUAGE PatternSynonyms #-}
+{-# LANGUAGE StandaloneDeriving #-}
+{-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE TypeApplications #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE UnboxedTuples #-}
+{-# LANGUAGE UndecidableInstances #-}
+
+module RGFW where
+
+import HsBindgen.Runtime.LibC
+import HsBindgen.TH
+
+let
+ conf = def{clang = def{extraIncludeDirs = [Dir "include"]}}
+ confTH = def{verbosity = Verbosity Warning}
+ in
+ withHsBindgen conf confTH $ hashInclude "RGFW.h"