Hs2lib-0.4.8: Hs2lib.cabal
Name: Hs2lib
Version: 0.4.8
Cabal-Version: >= 1.10
Build-Type: Simple
License: BSD3
License-File: LICENSE.txt
Author: Tamar Christina <tamar@zhox.com>
Maintainer: Tamar Christina <tamar@zhox.com>
Homepage: http://blog.zhox.com/category/hs2lib/
Category: Development
Stability: experimental
Synopsis: A Library and Preprocessor that makes it easier to create shared libs from Haskell programs.
Description: The supplied PreProcessor can be run over any existing source and would generate FFI code for every function marked to be exported by the special notation documented inside the package. It then proceeds to compile this generated code into a windows DLL.
.
The Library contains some helper code that's commonly needed to convert between types, and contains the code for the typeclasses the PreProcessor uses in the generated code to keep things clean.
.
It will always generated the required C types for use when calling the dll, but it will also generate the C# unsafe code if requested.
.
Read http://blog.zhox.com/hs2lib.pdf (not published yet)
.
Current Restrictions:
.
- You cannot export functions which have the same name (even if they're in different modules because 1 big hsc file is generated at the moment, no conflict resolutions)
.
- You cannot export datatypes with the same name, same restriction as above.
.
- Does not support automatic instance generation for infix constructors yet
.
Data-Files: Templates/main.template-unix.c,
Templates/main.template-win.c,
Templates/nomain.template-unix.c,
Templates/nomain.template-win.c,
Includes/Tuples.h,
Includes/Instances.h,
Includes/FFI.dll
Includes/FFI/Properties/AssemblyInfo.cs
Includes/FFI/FFI.sln
Includes/FFI/FFI.csproj
Includes/FFI/LockedValue.cs
Includes/FFI/SafeString.cs
Includes/FFI/FFI.suo
Includes/FFI/WinLib.cs
Includes/WinDllSupport.dll
Includes/WinDllSupport.lib
Includes/WinDllSupport.exp
Includes/WinDllSupport.h
Tested-With: GHC >= 6.12
Build-Depends: base >= 4,
syb >= 0.1.0.2
Extra-Source-Files: WinDll/*.hs,
WinDll/CodeGen/*.hs,
WinDll/CodeGen/CSharp/*.hs,
WinDll/COFF/*.hs,
WinDll/Lib/*.hsc,
WinDll/Lib/*.hs,
WinDll/Shared/*.hs,
WinDll/Structs/*.hs,
WinDll/Structs/Folds/*.hs,
WinDll/Structs/MShow/*.hs,
WinDll/Utils/*.hs,
Tests/*.hs,
Tests/Src/*.hs,
Tests/Src/*.txt,
*.hs,
Includes/*.h,
Includes/*.dll,
Includes/*.exp,
Includes/*.lib,
LIMITS.TXT
Library
Exposed: True
Exposed-Modules: WinDll.Lib.Converter,
WinDll.Lib.NativeMapping,
WinDll.Lib.Native,
WinDll.Lib.Tuples,
WinDll.Structs.Types,
WinDll.Lib.InstancesTypes
Build-Depends: haskell-src-exts >= 1.9.0,
ghc >= 6.12 && < 7.0 || >= 7.0.2,
base >= 4 && < 5,
filepath >= 1 && < 1.3,
syb >= 0.1.0.2
Other-Modules: Paths_Hs2lib
Default-Language: Haskell98
if !os(windows)
GHC-Options: -fPIC
Build-Tools: hsc2hs
Include-Dirs: Includes
Executable Hs2lib
Main-is: Hs2lib.hs
Build-Depends: QuickCheck >= 2.1.0.1,
directory >= 1.0.0.3,
ghc-paths >= 0.1.0.5,
filepath >= 1.1.0.2,
random >= 1.0.0.1,
process >= 1.0.1.1,
ghc >= 6.12 && < 7.0 || >= 7.0.2,
mtl >= 1.1.0.2,
containers >= 0.2.0.0,
array >= 0.2.0.0,
haskell-src-exts >= 1.9.0,
haddock >= 2.7.2,
base >= 4 && < 5,
syb >= 0.1.0.2,
time >= 1.2.0.3,
old-locale >= 1.0.0.2,
cereal >= 0.3.0.0
ghc-options: -threaded -fspec-constr-count=16
Other-Modules: Paths_Hs2lib
Default-Language: Haskell98