Alexandr N. Zamaraev wrote:
Sigbjorn Finne wrote:
Hi Wilkes,

you may want to have a look at a simple example of how to
interop with Windows WMI using the COM package at --

 http://haskell.forkio.com/com-examples
I try compile WMIDemo.hs but recive error:
[code]
c:\htest>ghc --make WMIDemo.hs
[2 of 2] Compiling WMIDemo          ( WMIDemo.hs, WMIDemo.o )

WMIDemo.hs:24:2:
    Couldn't match expected type `[a]' against inferred type `(a1, b)'
...

Hi,

please upgrade to the latest version - 1.2.2 - of the com package for this example,

  http://hackage.haskell.org/cgi-bin/hackage-scripts/package/com

There's been some improvements to the lib, esp. the handling of enumerations
(which is where that type error is coming from.)

hth
--sigbjorn

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

Reply via email to