[Haskell] Research positions in AI

2005-07-01 Thread PLANET
[Apologies if you receive multiple copies] - RESEARCH POSITIONS IN ARTIFICIAL INTELLIGENCE - National ICT Australia (NICTA) is seeking applications from high performing researchers to work in its Kno

[Haskell] Final Call for Participation: ForTIA Industry Day at FM'05

2005-07-01 Thread events-admin
(Advance apologies for receiving multiple copies) Dear colleagues, It is a pleasure for us to announce the final program for the Industry Day at the upcoming Formal Methods'05 conference, University of Newcastle Upon Tyne, UK. I-day is organised by the Formal Techniques Industrial Association as

[Haskell] PhD position in Monadic Computational Logics

2005-07-01 Thread Lutz Schroeder
A 3-year PhD-Position is available in the project "Monadic Computational Logics in HOL" at the University of Bremen. The project is concerned with the implementation and further development of monadic computational logics, including monadic Hoare logic and monadic dynamic logic as well a

Re: [Haskell] best way to do generic programming?

2005-07-01 Thread Malcolm Wallace
Arka al Eel <[EMAIL PROTECTED]> writes: > Haskell does not seem to have an easy way to do this. After looking > through some papers I found lots of things that *might* handle this, > like Generic Haskell, "scrap your boilerplate", Drift, etc. Now I'm > not sure what works best for real world, bre

Re: [Haskell] best way to do generic programming?

2005-07-01 Thread johanj
Here is a solution to your problem in Generic Haskell, see www.generic-haskell.org. You use gmap to traverse the structure, and have a special case for the type Expr, which does the optimization. I'm surprised the `real world' is this easy :-) - module

Re: [Haskell] best way to do generic programming?

2005-07-01 Thread Mirko Rahn
data Expr = Const Int | Var String | Add Expr Expr optimize (Add x (Const 0)) = x You would now want this to be this generic, so the function should be recursive for all other constructors *and* other data types. For example, suppose that Expr is included in other datatype: data Stm = A

[Haskell] best way to do generic programming?

2005-07-01 Thread Arka al Eel
Hi, I'm playing with generic programming. At the moment I'm interested in reusable transformations on data types. Provided for example a toy datatype Expr like this: data Expr = Const Int | Var String | Add Expr Expr Plus a function "optimize" that optimizes a pattern "x + 0" into "x": optimize