typelead / eta-hackage

A set of patches to make Hackage compatible with the Eta language.
64 stars 31 forks source link

[Patch Request] MissingH-1.4.0.1 #93

Closed rahulmutt closed 6 years ago

rahulmutt commented 6 years ago

The unix dependency needs to be commented out and all the missing functions should be replaced with a Java standard library shim (if possible). If not possible, the definition of the function can be replaced with an error "[message-here]" expression for now.

scameronde commented 6 years ago

rahulmutt opened this request on my behalf, but I am definitely out of my comfort zone. When commenting out the dependency to unix, too many functions in MissingH have compile errors. I think the best way is to leave MissingH as it is and patch unix, because it is the root cause. I am not good enough in Haskell or Eta to do this myself.

rahulmutt commented 6 years ago

@scameronde For now what you can do is comment out those modules which are causing errors in the cabal file. I'm sure the non-platform specific functions will be useful to others as well. Later, someone else can update the patch and properly patch out the unix functions.

The reason we haven't patched unix yet is that we haven't found a clean way to shim all the required functions and keep it API-compatible.

Jyothsnasrinivas commented 6 years ago

@scameronde I just patched MissingH-1.4.0.1. You should be able to use it now!