haskell-fswatch / hfsnotify

Unified Haskell interface for basic file system notifications
BSD 3-Clause "New" or "Revised" License
136 stars 40 forks source link

Does not work with GHC 9.10.1 / Linux #115

Open sol opened 1 month ago

sol commented 1 month ago

Steps to reproduce:

$ cabal test

All tests for the native implementation fail with:

Error: couldn't start native file manager: fdType: unsupported operation (unknown file type)
sol commented 1 month ago

This has been reported here: https://github.com/kolmodin/hinotify/issues/38

But the underlying reason is: https://github.com/ghc/ghc/commit/e206be6470d6c1d4a5ed80615c8dc830efe011ea#diff-97f1e321bbe75ce776f98261d832c63215aa181752861f8523988a4bc23187caR473

Which ultimately runs into the otherwise case here:

https://github.com/ghc/ghc/blob/7e02111b71609bd4859d09c23482ea947fc35729/libraries/ghc-internal/src/GHC/Internal/System/Posix/Internals.hs#L147-L153