diagrams / diagrams-lib

Diagrams standard library
https://diagrams.github.io/
Other
138 stars 62 forks source link

Compile error on BSD due to improper confWatchMode #366

Closed fegu closed 7 months ago

fegu commented 7 months ago

Diagrams.Backend.CmdLine does not compile on BSD because line 595

withManagerConf defaultConfig { confWatchMode = WatchModeOS }

Fails with

Data constructor not in scope: WatchModeOS :: WatchMode

The offending line requires WatchModeOS which does not exist on BSD. This is from fsnotify (System.FSNotify). Instead fsnotify defaultconfig should be used unaltered which already use WatchModeOS for supported platforms and falls back to WatchModePoll for BSD.