
Sounds awesome! I was recently thinking I wanted a v4l-binding. In the past I've patched vgrabbj so that I could pipe it and use it from Haskell, but wanted a direct binding. I just had a quick try with cabal-install and got the below. I'm not sure where linux/posix_types is supposed to come from. Is this error obvious to you? Ciao! Downloading bindings-linux-videodev2-0.1... Configuring bindings-linux-videodev2-0.1... Preprocessing library bindings-linux-videodev2-0.1... In file included from Bindings/Linux/videodev2.h:62, from VideoDev2.hsc:6: /usr/include/linux/types.h:8:31: error: linux/posix_types.h: No such file or directory VideoDev2.hsc: In function ‘main’: VideoDev2.hsc:1032: warning: cast from pointer to integer of different size VideoDev2.hsc:1032: warning: cast from pointer to integer of different size VideoDev2.hsc:1033: warning: cast from pointer to integer of different size VideoDev2.hsc:1033: warning: cast from pointer to integer of different size compiling dist/build/Bindings/Linux/VideoDev2_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=612 -IBindings/Linux/ -I/home/chris/.cabal/lib/network-2.3.0.4/ghc-6.12.3/include -I/home/chris/Programs/lib/ghc-6.12.3/unix-2.4.0.2/include -I/home/chris/Programs/lib/ghc-6.12.3/bytestring-0.9.1.7/include -I/home/chris/.cabal/lib/bindings-DSL-1.0.11/ghc-6.12.3/include -I/home/chris/Programs/lib/ghc-6.12.3/base-4.2.0.2/include -I/home/chris/Programs/lib/ghc-6.12.3/include -I/home/chris/Programs/lib/ghc-6.12.3/include -I/home/chris/Programs/lib/ghc-6.12.3/include/ dist/build/Bindings/Linux/VideoDev2_hsc_make.c -o dist/build/Bindings/Linux/VideoDev2_hsc_make.o