Re: [Haskell-cafe] Do you need Windows USB in Haskell?

2009-12-06 Thread Paulo Tanimoto
Hi Mauricio,

2009/12/5 Maurí­cio CA mauricio.antu...@gmail.com:

 Problem is: I don't have a Windows machine where I could test
 this. So, if you need USB in windows, please keep in touch. I
 wouldn't ask you to write any code, but I need to know what builds
 and what doesn't.


I don't need usb and I can't say I'm a windows user, but I'd be glad
to test it since I have it on a virtual machine.  In my case,
installation fails on bindings-common.  Is there something I need to
do first?  I do have mingw32 and msys installed, if that's necessary.

Log attached.

Take care,

Paulo
c:\tools\haskell-platform\2009.2.0.2\bin\ghc.exe --numeric-version
looking for package tool: ghc-pkg near compiler in
c:\tools\haskell-platform\2009.2.0.2\bin
found package tool in c:\tools\haskell-platform\2009.2.0.2\bin\ghc-pkg.exe
c:\tools\haskell-platform\2009.2.0.2\bin\ghc-pkg.exe --version
c:\tools\haskell-platform\2009.2.0.2\bin\ghc.exe --supported-languages
Reading installed packages...
c:\tools\haskell-platform\2009.2.0.2\bin\ghc-pkg.exe dump --global
Reading available packages...
Resolving dependencies...
selecting usb-0.2.0.1 (hackage) and discarding bindings-libusb-0.0.1, 0.0.2,
0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 1.0, 1.1, 1.2, 1.4, text-0.1, 0.2, 0.3,
0.4, usb-0.1, 0.1.0.1 and 0.2
selecting bindings-libusb-1.3 (hackage) and discarding bindings-common-0.1,
0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6,
1.0, 1.1, 1.2, bindings-posix-0.0.1, 0.0.2, 1.0, 1.0.1 and 1.1
selecting bindings-posix-1.2 (hackage)
selecting text-0.5 (installed or hackage)
selecting ghc-prim-0.1.0.0 (installed)
selecting rts-1.0 (installed)
selecting bytestring-0.9.1.4 (installed or hackage) and discarding
bytestring-0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1, 0.9.1.2,
0.9.1.3 and 0.9.1.5
selecting bindings-common-1.3.4 (hackage) and discarding bindings-common-1.3,
1.3.1, 1.3.2 and 1.3.3
selecting base-3.0.3.1 (installed) and 4.1.0.0 (installed) and discarding
syb-0.1.0.0 and 0.1.0.1
selecting integer-0.1.0.1 (installed)
selecting syb-0.1.0.1 (installed)
In order, the following would be installed:
bindings-common-1.3.4 (new package)
bindings-posix-1.2 (new package)
bindings-libusb-1.3 (new package)
usb-0.2.0.1 (new package)
bindings-common-1.3.4 has already been downloaded.
Extracting C:\Documents and Settings\tanimoto\Application
Data\cabal\packages\hackage.haskell.org\bindings-common\1.3.4\bindings-common-1.3.4.tar.gz
to C:\DOCUME~1\tanimoto\LOCALS~1\Temp\bindings-common-1.3.43288...
Configuring bindings-common-1.3.4...
Dependency base =3  5  ==3.0.3.1: using base-3.0.3.1
Using Cabal-1.6.0.3 compiled by ghc-6.10
Using compiler: ghc-6.10.4
Using install prefix: C:\Program Files\Haskell
Binaries installed in: C:\Program Files\Haskell\bin
Libraries installed in: C:\Program
Files\Haskell\bindings-common-1.3.4\ghc-6.10.4
Private binaries installed in: C:\Program Files\Haskell\bindings-common-1.3.4
Data files installed in: C:\Program Files\Haskell\bindings-common-1.3.4
Documentation installed in: C:\Program Files\Haskell\doc\bindings-common-1.3.4
Using alex version 2.3.1 found on system at:
c:\tools\haskell-platform\2009.2.0.2\extralibs\bin\alex.exe
Using ar found on system at: c:\MinGW\bin\ar.exe
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 3.4.5 found on system at:
c:\tools\haskell-platform\2009.2.0.2\gcc.exe
Using ghc version 6.10.4 found on system at:
c:\tools\haskell-platform\2009.2.0.2\bin\ghc.exe
Using ghc-pkg version 6.10.4 found on system at:
c:\tools\haskell-platform\2009.2.0.2\bin\ghc-pkg.exe
No greencard found
Using haddock version 2.4.2 found on system at:
c:\tools\haskell-platform\2009.2.0.2\bin\haddock.exe
Using happy version 1.18.4 found on system at:
c:\tools\haskell-platform\2009.2.0.2\extralibs\bin\happy.exe
No hmake found
Using hsc2hs version 0.67 found on system at:
c:\tools\haskell-platform\2009.2.0.2\bin\hsc2hs.exe
No hscolour found
No hugs found
No jhc found
Using ld found on system at:
c:\tools\haskell-platform\2009.2.0.2\gcc-lib\ld.exe
No nhc98 found
Using pkg-config version 0.23 found on system at:
c:\tools\gtk2hs\0.10.1\bin\pkg-config.exe
Using ranlib found on system at: c:\MinGW\bin\ranlib.exe
Using strip found on system at: c:\MinGW\bin\strip.exe
Using tar found on system at: C:\msys\1.0\bin\tar.exe
c:\tools\haskell-platform\2009.2.0.2\gcc.exe -Bc:\tools\haskell-platform\2009.2.0.2\gcc-lib -Ic:\tools\haskell-platform\2009.2.0.2\include\mingw C:\DOCUME~1\tanimoto\LOCALS~1\Temp\3288.c -o C:\DOCUME~1\tanimoto\LOCALS~1\Temp\3288 -Bc:\tools\haskell-platform\2009.2.0.2\gcc-lib -Ic:\tools\haskell-platform\2009.2.0.2\include\mingw -D__GLASGOW_HASKELL__=610 -Isrc -I. -D_ISOC99_SOURCE -Ic:\tools\haskell-platform\2009.2.0.2\base-4.1.0.0\include -Ic:\tools\haskell-platform\2009.2.0.2/include
Creating dist\build (and its parents)
Creating dist\build\autogen (and its parents)
Preprocessing library bindings-common-1.3.4...
Creating dist\build\Bindings\C (and its parents)

[Haskell-cafe] Do you need Windows USB in Haskell?

2009-12-05 Thread Maurí­cio CA

Hi,

I keep this direct binding to libusb-1.0.x:

  http://hackage.haskell.org/package/bindings-libusb

on top of which Bas maintains a nice USB library:

  http://hackage.haskell.org/package/usb

Work has been done to support libusb-1.0.x in Windows. So, as long
as my bindings-libusb works properly with that, Bas' as well as
any other library based on it will work too.

Problem is: I don't have a Windows machine where I could test
this. So, if you need USB in windows, please keep in touch. I
wouldn't ask you to write any code, but I need to know what builds
and what doesn't.

Best,
Maurício

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe