Marshalling automatization tool in C# and Haskell