cabal-version: >=1.10 Name: hsc2hs Version: 0.68.10 x-revision: 3 Copyright: 2000, Marcin Kowalczyk License: BSD3 License-File: LICENSE Author: Marcin Kowalczyk Maintainer: ghc-devs@haskell.org Synopsis: A preprocessor that helps with writing Haskell bindings to C code Bug-Reports: https://github.com/haskell/hsc2hs/issues Description: The hsc2hs program can be used to automate some parts of the process of writing Haskell bindings to C code. It reads an almost-Haskell source file with embedded special constructs, and outputs a real Haskell file with these constructs processed, based on information taken from some C headers. The extra constructs provide Haskell counterparts of C types, values of C constants, including sizes of C types, and access to fields of C structs. . For more details, see the in the GHC User's Guide. Category: Development Data-Dir: data/ Data-Files: template-hsc.h build-type: Simple tested-with: GHC == 9.12.0 GHC == 9.10.1 GHC == 9.8.2 GHC == 9.6.6 GHC == 9.4.8 GHC == 9.2.8 GHC == 9.0.2 GHC == 8.10.7 GHC == 8.8.4 GHC == 8.6.5 GHC == 8.4.4 GHC == 8.2.2 GHC == 8.0.2 extra-source-files: changelog.md test/asm/*.s flag in-ghc-tree description: Are we in a GHC tree? default: False manual: True source-repository head Type: git Location: https://github.com/haskell/hsc2hs.git Executable hsc2hs Default-Language: Haskell2010 Main-Is: Main.hs Hs-Source-Dirs: src/ Other-Modules: C Common CrossCodegen DirectCodegen Flags HSCParser ATTParser UtilsCodegen Compat.ResponseFile Compat.TempFile Paths_hsc2hs c-sources: cbits/utils.c Other-Extensions: CPP, NoMonomorphismRestriction Build-Depends: base >= 4.3.0 && < 4.22, containers >= 0.4.0 && < 0.8, directory >= 1.1.0 && < 1.4, filepath >= 1.2.0 && < 1.6, process >= 1.1.0 && < 1.7 if os(windows) -- N.B. Job object support was irreparably broken prior to 1.6.8. -- See https://github.com/haskell/process/issues/167. Build-Depends: process >= 1.6.8 && < 1.7 ghc-options: -Wall if flag(in-ghc-tree) cpp-options: -DIN_GHC_TREE test-suite spec main-is: Spec.hs hs-source-dirs: src/ test/ other-modules: ATTParser Flags BDD ghc-options: -Wall -threaded type: exitcode-stdio-1.0 build-depends: base >= 4.3.0 && < 4.22, test-framework >= 0.8.2.0 && < 0.9, test-framework-hunit >= 0.3.0.2 && < 0.4, HUnit >= 1.3.1.2 && < 1.4 || >= 1.6.0.0 && < 1.7 default-language: Haskell2010