Re: [Haskell-cafe] Re: How many "Haskell Engineer I/II/III"s are there?

2010-02-11 Thread Praki Prakash
I am working on an analytics server with a web front end. Being a
personal endeavor at this time, I can choose any language that I
fancy. I love Haskell and have achieved a modicum of proficiency with
many years of following along. I spent a few weeks of serious Haskell
prototyping and came to the realization that Haskell has a very steep
learning curve to become truly proficient in it. The basics are easy,
the various typeclasses can be understood with some study. But, there
are thousands of packages on Hackage and not much documentation on
most them. Another issue for me is the lack of a cohesive
infrastructure for working with web services.

Now my work has shifted to Clojure. I like it so far but I miss the
elegance of Haskell. Whether Haskell becomes an easy choice for
commercial work or remains a boutique language depends on how easy it
is to build today's applications.

But, I still love Haskell :)
Praki


On Thu, Feb 11, 2010 at 1:39 AM, Michael Oswald  wrote:
> On 02/10/2010 04:59 PM, Jason Dusek wrote:
>>   I wonder how many people actually write Haskell,
>>   principally or exclusively, at work?
>
> Well, my main language at work in the moment is C++, we also use Java, a
> lot of Tcl and Python.
>
> I use Haskell for my own programs and test utilities / converters. The
> biggest achievement at work was an Installer program, which was quite
> complicated and had to be safe and of course we had time pressure, so I
> quickly coded it in Haskell. It is now used in the installation
> procedure of a part from a big mission control system for satellites.
>
>
> lg,
> Michael
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
http://www.google.com/profiles/praki.prakash
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Need some ideas to map XML Schema types to Haskell types

2009-02-15 Thread Praki Prakash
Hi,

I need to work with a web service that has a few thousand types in its
schema. I am trying to automate the generation of data types and
serializers from the schema. My first thought was to map each data
type to a Haskell record and generate pickle methods thereafter for
serialziation/deserialization. However, I am seeing a few challenges
in mapping Schema types to Haskell records.

First issue is the naming conflicts with record fields. If the number
of types were smaller, I could have manually mangled the name with a
unique prefix. Using a type class for shared name fields seems like an
option but it looks like quite a bit of work. Is there any other
technique I can use?

Second issue is with capturing the Schema type hierarchy. Is there any
way to relate types? If not, what would be a good technique to
represent type hierarchies?

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


Re: [Haskell-cafe] Takusen 0.8.3 install problems

2009-01-31 Thread Praki Prakash
Don,

Thanks for the hint. I removed Setup.hs and tried "cabal build".  I
get an error that build type is custom and Setup.lhs is missing. What
is the magical incantation needed to do the default build?

Thanks
Praki

On Sat, Jan 31, 2009 at 12:30 PM, Don Stewart  wrote:
> praki.prakash:
>> I am trying to install Takusen 0.8.3 with ghc 6.10.1 on Ubuntu 8.04
>> (same issue on Win XP as well). I get the following complaint from
>> cabal.
>>
>>Module
>>`Distribution.PackageDescription'
>>does not export
>>`writeHookedBuildInfo'
>> cabal: Error: some packages failed to install:
>> Takusen-0.8.3 failed during the configure step. The exception was:
>> exit: ExitFailure 1
>
> You can probably just remove the Setup.lhs and build with defaults
> (we're doing that at galois, we use Takusen).
>
> -- Don
>
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Takusen 0.8.3 install problems

2009-01-31 Thread Praki Prakash
I am trying to install Takusen 0.8.3 with ghc 6.10.1 on Ubuntu 8.04
(same issue on Win XP as well). I get the following complaint from
cabal.

   Module
   `Distribution.PackageDescription'
   does not export
   `writeHookedBuildInfo'
cabal: Error: some packages failed to install:
Takusen-0.8.3 failed during the configure step. The exception was:
exit: ExitFailure 1

Any suggestions on how to fix this issue?

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


[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 

I need to invoke methods on the wrapped interface. My attempt to unbox it as
below runs into 'rigid type' error.

someFunc (Variant VT_DISPATCH val) query = do
  dispId <- getMethodID "MethodName"  val

The code above generates this error.

Couldn't match expected type `IDispatch a'
   against inferred type `a1'
  `a1' is a rigid type variable bound by...

I am probably missing something pretty basic. Any help on this is greatly
appreciated!

Thanks





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