Non-exhaustive patterns #1

snoyberg opened this Issue Nov 28, 2012 · 1 comment

2 participants

yesod: src\System\Win32\Notify.hs:(136,1)-(146,45): Non-exhaustive patterns in function actsToEvent

The issue is triggered when there are multiple events occurs at once. There is no patterns to handle this case.

I found a blog post desribing the ReadDirectoryChangesW API :

Due to difficulties described there, I believe that the events handling code should be changed to just past all recieved events to a handler as is.

Rename events (FileRenamedOld and FileRenamedNew) are coming in separate batches at my box, so rename detection logic looks broken too. As for me, this logic can be dropped for now, as the primary use of the lib is to detect any changes.

@snoyberg snoyberg referenced this issue in yesodweb/yesod Dec 25, 2012

Yesod Install #461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment