hs-dotnet: Pragmatic .NET interop for Haskell

[ .net, bsd3, library ] [ Propose Tags ] [ Report a vulnerability ]

This package provides a way for Haskell code (via GHC) to interact with .NET code and libraries. Full access to the .NET object model is provided, letting you create and manipulate .NET objects.

Support for calling back into to Haskell from .NET code is also supported, exposing Haskell code as delegates.

Work on broadening the interop even further between the two worlds is underway.

More info on package and its features at http://haskell.forkIO.com/dotnet


[Skip to Readme]

Modules

  • NET
    • NET.Base
    • System
      • NET.System.Array
      • NET.System.Char
      • Collections
        • NET.System.Collections.CollectionBase
        • NET.System.Collections.IEnumerator
      • NET.System.DateTime
      • NET.System.DateTimeKind
      • NET.System.DayOfWeek
      • NET.System.Decimal
      • NET.System.Delegate
        • NET.System.Delegate.Type
      • NET.System.Enum
      • NET.System.EnumTy
      • Globalization
        • NET.System.Globalization.Calendar
        • NET.System.Globalization.CalendarAlgorithmType
        • NET.System.Globalization.CalendarWeekRule
        • NET.System.Globalization.CompareInfo
        • NET.System.Globalization.CultureInfo
        • NET.System.Globalization.DateTimeFormatInfo
        • NET.System.Globalization.DateTimeStyles
        • NET.System.Globalization.DigitShapes
        • NET.System.Globalization.NumberFormatInfo
        • NET.System.Globalization.NumberStyles
        • NET.System.Globalization.SortKey
        • NET.System.Globalization.TextInfo
        • NET.System.Globalization.UnicodeCategory
      • NET.System.IFormatProvider
      • IO
        • NET.System.IO.BinaryReader
          • NET.System.IO.BinaryReader.Type
        • NET.System.IO.BinaryWriter
          • NET.System.IO.BinaryWriter.Type
        • NET.System.IO.SeekOrigin
          • NET.System.IO.SeekOrigin.Type
        • NET.System.IO.Stream
        • NET.System.IO.TextReader
        • NET.System.IO.TextWriter
      • NET.System.Int32
      • NET.System.MarshalByRefObject
      • NET.System.Object
      • NET.System.ObjectTy
      • NET.System.String
      • NET.System.StringTy
      • Text
        • NET.System.Text.Encoding
        • NET.System.Text.StringBuilder
      • NET.System.TimeSpan
      • NET.System.Type
      • NET.System.TypeCode
      • NET.System.TypeCodeTy
      • NET.System.TypeTy
      • NET.System.Uri
      • NET.System.UriHostNameType
      • NET.System.UriKind
      • NET.System.UriPartial
      • NET.System.ValueType

Flags

Automatic Flags
NameDescriptionDefault
old-base

Old, monolithic base

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.0, 0.3.1, 0.4.0
Change log CHANGES
Dependencies base, ghc-prim [details]
License BSD-3-Clause
Author Sigbjorn Finne <sof@forkIO.com>
Maintainer Sigbjorn Finne <sof@forkIO.com>
Category .NET
Uploaded by SigbjornFinne at 2009-01-15T07:45:29Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 3045 total (15 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-02 [all 7 reports]

Readme for hs-dotnet-0.3.0

[back to package description]
== hs-dotnet: a pragmatic Haskell .NET interop layer ==

This is the README for hs-dotnet, a package that lets you access
and use .NET code / classes from Haskell (and vice versa..) 
Feel the power!

=== Web page ===

More info on the package, releases, etc can be found at

  http://haskell.forkIO.com/dotnet


=== Getting started ===

After having built _and_ installed the Cabal package, you're ready to
go. Have a look in the examples/ directory for some bare-bones
examples

== Generating class wrappers ==

While it is possible to access .NET without taking such a structured
approach, you may choose to generate Haskell wrapper modules for the
.NET-side classes you want to access. Writing these out by hand, and
in a manner that's type-safe, gets tiresome after a while and unncessarily
exposes you to RSI risks, so a tool is provided for this in... tools/

Simply name the class you want to wrap up, possibly along with the -d
flag, and it generates a Haskell module for the class. The tool has
a couple of shortcomings and limitations at the moment, but in most
cases that should give you a workable Haskell module. 

Improvements to wrapper generation is still evolving and expanded to 
make the interface to the .NET world more natural to the Haskell 
programmer.

=== Installation ===

Installation amounts to building and installing the Cabal package.

Notice that you will have to perform the install step before you are
able to use the package. The reason being that the supporting .NET
assembly (and accompanying COM classes) needs to be installed(GACed)
and published first. 

You may manually do this step by running 'gacInstaller' on HsInvoker.dll
and 'regasm' on same.