The hs-dotnet package

[Tags: bsd3, library]

hs-dotnet integrates the .NET platform with Haskell (via GHC.)

It lets you interact with .NET code and libraries, providing full access to .NET objects in a type-safe manner. This also includes parameterized .NET types (generic types), representing them in a manner natural to Haskell.

Dually, Haskell functions can be accessed and called from .NET, hs-dotnet transparently exposing these as delegates for you. Two example uses of this facility are the use of Haskell when programming LINQ and in Windows Forms UIs. Here's how to fire up an example program accessing LINQ:

 c:\haskell> cd examples
 c:\haskell> ghci LinqQuery.hs
 LinqQuery> whereQuery

The package also includes tool support for automatically generating Haskell wrappers and types to .NET classes. The package assumes at least v2.0 of the .NET framework.

More info on package and its features at


Versions0.3.0, 0.3.1, 0.4.0
Change logCHANGES
Dependenciesbase (<3 || >=4), ghc-prim
AuthorSigbjorn Finne <>
MaintainerSigbjorn Finne <>
UploadedSat Apr 18 20:35:18 UTC 2009 by SigbjornFinne
Downloads663 total (39 in last 30 days)
StatusDocs not available [build log]
All reported builds failed as of 2015-05-19 [all 2 reports]



old-baseOld, monolithic baseDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees