try using record dots with TH
This commit is contained in:
parent
96ec5c1cb1
commit
5aa0cdc38d
@ -5,10 +5,10 @@ packages: .
|
|||||||
-- so we specify the equivalent commit SHAs manually instead
|
-- so we specify the equivalent commit SHAs manually instead
|
||||||
source-repository-package
|
source-repository-package
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/well-typed/hs-bindgen
|
location: https://github.com/georgefst/hs-bindgen
|
||||||
tag: e2a9260678d9fa76dab602a5a07927acada3be4f
|
tag: 3693360bcd1f8478932c4944c70baca7c4ecf950
|
||||||
subdir: c-expr-dsl c-expr-runtime hs-bindgen hs-bindgen-runtime
|
subdir: c-expr-dsl c-expr-runtime hs-bindgen hs-bindgen-runtime
|
||||||
--sha256: 0nrs3iq0l5ha5kxyhqnlmvgi7734pmzyp3zf7p8s1gb21ylh4sy0
|
--sha256: lV2FwS80iHhJU6iie/F24W4dYV+vvmeTu6465NLnOb4=
|
||||||
source-repository-package
|
source-repository-package
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/well-typed/libclang
|
location: https://github.com/well-typed/libclang
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{-# LANGUAGE CApiFFI #-}
|
{-# LANGUAGE CApiFFI #-}
|
||||||
{-# LANGUAGE DerivingVia #-}
|
{-# LANGUAGE DerivingVia #-}
|
||||||
{-# LANGUAGE FieldSelectors #-}
|
{-# LANGUAGE FieldSelectors #-}
|
||||||
|
-- {-# LANGUAGE NoFieldSelectors #-}
|
||||||
{-# LANGUAGE MagicHash #-}
|
{-# LANGUAGE MagicHash #-}
|
||||||
{-# LANGUAGE PatternSynonyms #-}
|
{-# LANGUAGE PatternSynonyms #-}
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
{-# LANGUAGE TemplateHaskell #-}
|
||||||
@ -41,6 +42,9 @@ do
|
|||||||
withHsBindgen
|
withHsBindgen
|
||||||
def
|
def
|
||||||
{ clang = def{extraIncludeDirs = Pkg "rust" : systemDirs}
|
{ clang = def{extraIncludeDirs = Pkg "rust" : systemDirs}
|
||||||
|
-- hmm, I guess there's a reason this wasn't exported
|
||||||
|
-- , fieldNamingStrategy = EnableRecordDot
|
||||||
|
, fieldNamingStrategy = PrefixedFieldNames
|
||||||
}
|
}
|
||||||
def
|
def
|
||||||
$ hashInclude "garnet_rs.h"
|
$ hashInclude "garnet_rs.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user