summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"