Re: pretty newby

2003-09-24 Thread Luc Taesch
Thanks. i understand that a2ps is rather for printing.
What I had in mind what to pp my own programs, to clean the source layout, rather.

The process i used in other context is  to hack , without really taking care of the 
layout ( say getting distracted by) , and once i got a resonalble level of stability, 
i cleaned the program, using a pp;

ideally in haskell, this would add the typing for me, also. ( still havent made my 
religion if that's cool to have the typing on top of the definition, or not, but at 
least for doc generation purpose, that's good.) 
feedback on that ?

so the two gain i was expecting were : 
- cleaning the layout, after i removed all the debugging code
- generating the type 

but i understood from Per from that the parser would not take care of the comments. ( 
not take care, or remove , btw ?).

alos, Im surprised that this bland issue has not already been solved (PP lib paper 
looks dated 96). no  offence intended, but aas im newbie, i wonder what am i missing ? 
what is different in the process of creation so that this need did not arised already? 
i should admint i'm puzzled, given the facilities at hand...


> Alle 16:05, martedì 23 settembre 2003, Luc Taesch ha scritto:
> > are there any facility to pretty print an haskell program ?
> 
> If what you need is an external program and not a library, have a look 
> at GNU a2ps.
> 
> Vincenzo
> 
> ___
> Haskell mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/haskell

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


pretty newby

2003-09-23 Thread Luc Taesch
are there any facility to pretty print an haskell program ?
im aware of HPJ combinators library, but i was looking for a command line utility, 
rather.. am i missing an entry in HPJ ?

thanks
Luc
___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


Fw: cannot find -lreadline

2003-09-16 Thread Luc Taesch
sorry, repost.


- Original Message -
From: "Luc Taesch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 8:06 AM
Subject: cannot find -lreadline


>
>
> when compiling HaXML with 6.01 on mandrake, I got
> /usr/bin/ld: cannot find -lreadline, as detailled hereafter.
>
> also , when I installed the rpm I also got a message on readline missing,
despite it is installed.
>
> is anybody aware of this issue ? any variable to set ? on mandrale,
readline is on /lib/libreadline.so.4.3. what about redhat ?
>
> thanks , Luc
>
>
> [EMAIL PROTECTED] HaXml-1.09]$ rpm -ql readline
> /lib/libhistory.so.4
> /lib/libhistory.so.4.1
> /lib/libhistory.so.4.2
> /lib/libhistory.so.4.3
> /lib/libreadline.so.4
> /lib/libreadline.so.4.1
> /lib/libreadline.so.4.2
> /lib/libreadline.so.4.3
> [EMAIL PROTECTED] HaXml-1.09]$
>
> nstance.hs, ../Text/XML/HaXml/DtdToHaskell/Instance.o )
> Skipping  Main ( DtdToHaskell.hs, ./DtdToHaskell.o )
> Linking ...
> /usr/bin/ld: cannot find -lreadline
> collect2: ld returned 1 exit status
> make[1]: *** [../../DtdToHaskell] Error 1
> make[1]: Leaving directory `/home/test/Documents/test/HaXml-1.09/obj/ghc'
> make: *** [tools-ghc] Error 2
>
>

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell


Re: Haskell for non-Haskell sake

2003-09-03 Thread Luc Taesch
Short version :

I'm using Haskell in the field of Business Modeling, mainly Banking and
Finance.
The Idea is to be able to specify (properly), test and experiment by playing
with models, before deploying them into applications ( in Cobol, Java, ...
why not in haskell one day.. ;-)

Short term, I used it to prototypes business cases and small tools  ( like
GRM specs-> dot files),
Longer term, I would like to develop
- a complete environment to specs/test models,
- and a DSL , business patterns like.

Longer Version:

Paper models do not breaks ( because you cannot test them ). Properly typed
one neither (because you can).

I assert that the biggest failure factor of projects  (in banking, and more
generally , in business administration) is the scope and specification phase
(...), and the ability to effectively play early with living models would
enhance the quality of the specs, ease the creation of these, make you
business users happy and raise the confidence of stakeholders .


If you can "run" the 10-50 cases that form the essence of a model, and have
them visualized in some screen forms prototyping the "idealised"
application, you create more motivation than delivering 500 pages of specs ,
or  ER /UML models on A2 paper.

These cases are written in Haskell, and the Model either. Its expressive
power make the specs clear, definitive, unambiguous, and the model either.
And you can run it. On top. So you can show it works. after a few weeks.
Before the "real" development, which will need 6-12 month (optimistically).
You can still comment in english your Haskell specs (for common readers),
but the specs are drastically smaller than classically, as they are up to
the point.
No fuss needed. It already works.


I am in the banking field for about 20 years ( front/middle/back office ,
accounting, credits..) , used to be Developper, Business analyst, Project
manager, and now contracting mainly mainly as Business Analyst. Starting
with 3GL, I  practiced OO starting in 91, and in 97-01, was part of a "guru"
team to create the models that were feeding a 200-men project.
We were testing our models on prototype ( in Eiffel) before handing them
over. We created some "methodology" out of it, how to build "business rules,
business processes", and also derived some experience on testing models.
Let's say : XP/agile processes + business patterns + test cases.

I discovered Functional Programming mid 2000, experimented in my spare time
in Erlang, created some tools to automate specs capture and doc generation,
and began fiddling with Haskell in 2001.

The Expressiveness was impressive, Abstraction was becoming a reality, and
this Lazyness was exactly what I was Looking for...

Hudak's book amazed me, I discovered these DSL, which were what I was
looking for, and what I was de facto doing these previous years.
The SPJ/Eber Paper on contract was definitive in convincing me that I was on
the right track.
I then has to stop my personal research end 2001 and resumed it a few weeks
ago, to discover with pleasure advances like the generics boilerplate ...

Scrapping boilerplate looks like a good plan for administrations...

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell