Skip to content

Commit

Permalink
import Foreign.C instead of Foreign.C.Types (for CString)
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Aug 16, 2023
1 parent 3be050d commit b809bbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fficxx/src/FFICXX/Generate/ContentMaker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ buildTemplateHs m =
where
t = tcihTClass $ tcmTCIH m
imports =
[ Ex.mkImport "Foreign.C.Types",
[ Ex.mkImport "Foreign.C",
Ex.mkImport "Foreign.Ptr",
Ex.mkImport "FFICXX.Runtime.Cast"
]
Expand All @@ -562,7 +562,7 @@ buildTHHs m =
( [ Ex.mkImport "Data.Char",
Ex.mkImport "Data.List",
Ex.mkImport "Data.Monoid",
Ex.mkImport "Foreign.C.Types",
Ex.mkImport "Foreign.C",
Ex.mkImport "Foreign.Ptr",
Ex.mkImport "Language.Haskell.TH",
Ex.mkImport "Language.Haskell.TH.Syntax",
Expand Down Expand Up @@ -681,7 +681,7 @@ buildTopLevelTemplateHs modname tih =
)
tfns
pkgImports =
[ Ex.mkImport "Foreign.C.Types",
[ Ex.mkImport "Foreign.C",
Ex.mkImport "Foreign.Ptr",
Ex.mkImport "FFICXX.Runtime.Cast"
]
Expand Down Expand Up @@ -716,7 +716,7 @@ buildTopLevelTHHs modname tih =
[ Ex.mkImport "Data.Char",
Ex.mkImport "Data.List",
Ex.mkImport "Data.Monoid",
Ex.mkImport "Foreign.C.Types",
Ex.mkImport "Foreign.C",
Ex.mkImport "Foreign.Ptr",
Ex.mkImport "Language.Haskell.TH",
Ex.mkImport "Language.Haskell.TH.Syntax",
Expand Down

0 comments on commit b809bbc

Please sign in to comment.