fpco / fsnotify-conduit

Get filesystem notifications as a stream of events
MIT License
8 stars 2 forks source link

Support fsnotify-0.4.1.0 #5

Open alaendle opened 12 months ago

alaendle commented 12 months ago

Compilation with fsnotify-0.4.1.0 fails

Constructor Unknown added another parameter - see https://hackage.haskell.org/package/fsnotify-0.4.1.0/docs/System-FSNotify.html#t:Event vs. https://hackage.haskell.org/package/fsnotify-0.3.0.1/docs/System-FSNotify.html#t:Event

fsnotify-conduit-0.1.1.1/src/Data/Conduit/FSNotify.hs:169:33: error:
    • The constructor ‘FS.Unknown’ should have 4 arguments, but has been given 3
    • In the pattern: FS.Unknown _ time str
      In a case alternative:  
          FS.Unknown _ time str -> FS.Unknown suffix time str
      In the second argument of ‘($)’, namely
        ‘case event of        
           FS.Added _ time dir -> FS.Added suffix time dir
           FS.Modified _ time dir -> FS.Modified suffix time dir
           FS.Removed _ time dir -> FS.Removed suffix time dir
           FS.Unknown _ time str -> FS.Unknown suffix time str’
    |                         
169 |                                 FS.Unknown _ time str -> FS.Unknown suffix time str
    |                                 ^^^^

(duplicate of https://github.com/commercialhaskell/stackage/issues/6768)