fix windows build

This commit is contained in:
Joey Hess 2014-07-05 11:16:41 -04:00
parent 0116ee498b
commit c5c4fd76ec

View file

@ -61,10 +61,10 @@ getDirectoryContents' path = loop =<< opendir
ent <- Win32.getFindDataFileName fdat
v <- tryNonAsync $ Win32.findNextFile h fdat
case v of
Right True ->
rest <- unsafeInterleaveIO loop (h, fdat)
Right True -> do
rest <- unsafeInterleaveIO (loop (h, fdat))
return (ent:rest)
_ ->
_ -> do
void $ tryNonAsync $ Win32.findClose h
return [ent]
#endif