diff options
| author | andromeda <andromeda@lenovo> | 2026-04-26 16:21:29 +0200 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-04-26 16:21:29 +0200 |
| commit | defd967b9484a0c2af54e6f72f9d4c7f1ef59df0 (patch) | |
| tree | 644a530065224d7a0d403157adeeccfc3f2960a1 /src | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/RGFW.hs | 30 |
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" |
