Re: [Haskell-cafe] Unboxing VT_VARIANT in hscom

2008-08-20 Thread Krasimir Angelov
Aha. I got it. You should compile with -fglasgow-exts option. The extra type signatures doesn't matter. On Wed, Aug 20, 2008 at 8:20 AM, Praki Prakash [EMAIL PROTECTED] wrote: Krasimir - thanks for your reply. I had tried explicit typing but I still get the same error. I have some code below

Re: [Haskell-cafe] Unboxing VT_VARIANT in hscom

2008-08-19 Thread Krasimir Angelov
This looks like a GHC bug to me. I am pretty sure that this worked before. Variant is defined like this: data Variant = forall a . Variant (VarType a) a data VarType a where VT_DISPATCH :: VarType (IDispatch ()) From this it clear that val is of type (IDispatch ()) because the

[Haskell-cafe] Unboxing VT_VARIANT in hscom

2008-08-18 Thread Praki Prakash
I am a Haskell newbie trying to do COM automation using Haskell. I am using hscom (Krasimir's implementation of COM automation). I have run into a problem and need some help. I have a Variant returned from a COM method invocation. When I print it, it shows up as below. Variant VT_DISPATCH