c2hs-0.16.0: c2hs.cabal
Name: c2hs
Version: 0.16.0
License: GPL
License-File: COPYING
Copyright: Copyright (c) 1999-2007 Manuel M T Chakravarty
2005-2008 Duncan Coutts
2008 Benedikt Huber
Author: Manuel M T Chakravarty
Maintainer: chak@cse.unsw.edu.au, duncan@haskell.org
Stability: Stable
Homepage: http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
Bug-Reports: http://hackage.haskell.org/trac/c2hs/
Synopsis: C->Haskell FFI tool that gives some cross-language type safety
Description: C->Haskell assists in the development of Haskell bindings to C
libraries. It extracts interface information from C header
files and generates Haskell code with foreign imports and
marshaling. Unlike writing foreign imports by hand (or using
hsch2s), this ensures that C functions are imported with the
correct Haskell types.
Category: Development
Tested-With: GHC==6.8.2, GHC==6.10.1
Cabal-Version: >= 1.2
Build-Type: Simple
--TODO: Cabal should allow 'Data-Files' in the executable stanza
Data-Files: C2HS.hs
Extra-Source-Files:
src/C2HS/config.h
AUTHORS INSTALL README
doc/c2hs.xml doc/c2hs.css doc/man1/c2hs.1 doc/Makefile
tests/system/Calls.chs tests/system/calls.h
tests/system/Cpp.chs tests/system/cpp.h
tests/system/Enums.chs tests/system/enums.h tests/system/enums.c
tests/system/Marsh.chs tests/system/marsh.h
tests/system/Pointer.chs tests/system/pointer.h tests/system/pointer.c
tests/system/Simple.chs tests/system/simple.h tests/system/simple.c
tests/system/Sizeof.chs tests/system/sizeof.h tests/system/sizeof.c
tests/system/Structs.chs tests/system/structs.h tests/system/structs.c
tests/system/structs.expect
tests/system/Makefile
flag base3
Executable c2hs
Build-Depends: base >= 2 && < 5,
language-c >= 0.3.1.1 && < 0.4.0,
filepath
if flag(base3)
Build-Depends: base >= 3, process, directory, array, containers, pretty
else
Build-Depends: base < 3
hs-source-dirs: src
main-is: Main.hs
other-modules:
C2HS.C
C2HS.C.Attrs
C2HS.C.Builtin
C2HS.C.Info
C2HS.C.Names
C2HS.C.Trav
C2HS.CHS
C2HS.CHS.Lexer
C2HS.Gen.Monad
C2HS.Gen.Bind
C2HS.Gen.Header
C2HS.State
C2HS.Switches
C2HS.Config
C2HS.Version
Control.StateBase
Control.State
Control.StateTrans
Data.Attributes
Data.DLists
Data.Errors
Data.NameSpaces
System.CIO
Text.Lexers
extensions: ForeignFunctionInterface
c-sources: src/C2HS/config.c
--TODO: eliminate the need to suppress these warnings:
ghc-options: -Wall -fno-warn-incomplete-patterns