Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-exhaustive patterns #1

Open
snoyberg opened this issue Nov 28, 2012 · 1 comment
Open

Non-exhaustive patterns #1

snoyberg opened this issue Nov 28, 2012 · 1 comment

Comments

@snoyberg
Copy link

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

jakobz commented Dec 21, 2012

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 :
http://qualapps.blogspot.ru/2010/05/understanding-readdirectorychangesw_19.html

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants