Re: [Haskell-cafe] Pure Haskell Printf
On Tuesday 16 November 2004 10:37, Henning Thielemann wrote: Variable length argument lists are really a mess. Why are people so keen on them? What is the advantage over a plain list as single argument? Is vsprintf %s, your age is %s\n [John, show (10::Integer)] really too complicated? The implementation of printf in ocaml, for example, is not only type-safe, but more type safe than passing a list, because the number and type of arguments is known at compile time. V. ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Calling Haskell from .Net Environment
On Friday 29 October 2004 03:48, David Lo wrote: Dear all, I'm new in Haskell. I need to port a haskell application written by someone else to be called by a .Net C# application. Please kindly advise on which option to pursue. Any helps will really be appreciated. The easiest path I know would be to use xmlrpc, (or perhaps soap if you know it - but I am unsure of availability of the latter for haskell, you might check the www.haskell.org website). Bye Vincenzo -- I was dressed for success, but success it never comes [Pavement - Here] ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] DSL for business logic
On Monday 18 October 2004 21:35, Bhinderwala, Shoeb wrote: Are monadic programming concepts essential to create a DSL. I am just learning Haskell and haven't grasped fully the concepts of monadic programming yet. I suggested using monads and arrows for DSLs is because they provide a generalized and simple method to model binding and sequencing, and comfortable syntax sugar. Said this, sure you don't need them to start, and when you'll have a deeper knowledge you'll certainly be able to tell when it is or it is not the case. Bye Vincenzo ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Can I determin the function name passed in?
On Thursday 07 October 2004 12:20, Keith Wansbrough wrote: You can't do this in Haskell. In Haskell, functions are very lightweight things, and often they are inlined or compiled away in some way leaving no trace at runtime. So there's nothing to reflect on. This is in contrast to a language like Java, where each object has quite a lot of identity and state, and a large heap footprint. Would perhaps template haskell help? http://www.haskell.org/hawiki/TemplateHaskell V. -- First they ignore you, then they laugh at you, then they fight you, then you win. [Gandhi] ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Integrating Haskell into a J2EE environment
On Tuesday 05 October 2004 23:33, Bhinderwala, Shoeb wrote: I came across a few papers that talk about writing a DSL with Haskell as the underlying support language. How is this done. Is it possible to create a sort of domain specific business scripting language easily. How does that then compile to Haskell code. And how can the Haskell code be invoked from Java. You usually write a DSL in haskell as a library, using monads or arrows if it is the case, and exploiting monads and arrows syntax facilities. Names in libraries represent operations of the DSL, and do not (of course) necessarily compute results, but can do many things, including generating source code for another language - you can find a lot of information on the web, e.g. http://www.cs.uu.nl/~daan/download/papers/dsec.ps http://homepages.cwi.nl/~arie/papers/dslbib/ One of the most known examples is FRAN (or the more up-to-date Yampa), but there actually are a lot of applications from very different domains. bye Vincenzo ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe