Call a Haskell function in .NET

前端 未结 4 1605
遥遥无期
遥遥无期 2020-12-15 22:26

I want to use a Haskell function with the following type :: string -> string from a C# program.

I want to use hs-dotnet to bridge both worlds. The au

4条回答
  •  清酒与你
    2020-12-15 23:03

    You can certainly call Haskell from C at least -- you use "foreign export" in the Haskell file, and GHC generates a C header which you can then import and use to call into Haskell from C.

    I've not seen this done for the .NET bindings -- so I think it is best to ask both the author - Sigbjorn - and on haskell-cafe@ for examples.

提交回复
热议问题