
Conditional compilation should work fine but IIRC conditional dependencies aren't supported. You'll probably need to retain the sendFile dependency even if you integrate 山本様's code. Then just use his via conditional compilation as an optimization.
Max
On Jun 7, 2011, at 13:23, Michael Snoyman
On Tue, Jun 7, 2011 at 8:14 AM, Kazu Yamamoto
wrote: Hello,
Well, if the authors of sendfile aren't responsive, another possibility would be to have Warp use your more efficient sendfile code directly (either by releasing it as its own package, or by moving that code into the Warp codebase). I would prefer this approach to changing WAI. Thoughts?
Please tell me which OSes Warp should support?
I can provide sendfile functions to Linux/FreeBSD/MacOS but I cannot do for Windows. If Unix-like OSes are enough, I will take this approach.
I think it should be possible to use conditional compilation to use your code for relevant OSes, and otherwise fall back to the sendfile package.
Michael
--Kazu
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel