corsis / clock

High-resolution clock functions: monotonic, realtime, cputime.
Other
58 stars 25 forks source link

FFI changes to support the GHC WASM/WASI backend #85

Closed amesgen closed 1 year ago

amesgen commented 1 year ago

This fixes compilation with the new WASM/WASI backend in GHC 9.6 with an approach as in https://github.com/haskell/time/pull/209.

I have only compiled this for x86_64-linux and wasm32-wasi; it might make sense to first add CI for Windows/macOS/etc. before merging this to ensure it does not break on those systems.

CetinSert commented 1 year ago

@amesgen – do we need a hackage release?

amesgen commented 1 year ago

That would be neat! As mentioned in the PR description, CI for macOS/Windows (or even more systems) might be neat before releasing this PR. I can create a PR for that if you want.

CetinSert commented 1 year ago

I can create a PR for that if you want.

@amesgen – please do so 😃!

georgefst commented 1 year ago

@amesgen – do we need a hackage release?

With #86 merged, is there anything blocking a release?

CetinSert commented 1 year ago

@georgefst @amesgen

See: