[Haskell-cafe] Help on using System.Win32.Com.Automation

Sigbjorn Finne sigbjorn.finne at gmail.com
Mon Mar 23 12:41:14 EDT 2009

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)'


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


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


More information about the Haskell-Cafe mailing list