[Haskell-cafe] new Library Infrastructure spec.

2004-06-01 Thread Isaac Jones
(followups to [EMAIL PROTECTED])

Hail Haskellers! 

A commonly-identified obstacle to the spread of Haskell libraries is
that there is no standard way

   a) for authors to package a library or other tool for distribution
  to others

   b) for customers to install such a package

Platforms vary.  Haskell compilers vary.  Packages have
dependencies. Etc.

Isaac Jones has coordinated an effort to address this problem.  We've
had a lot of discussion between him and (at least some of) the folk
involved in the GHC, Hugs, and nhc implementations.  This discussion
has led to a new concrete proposed specification[1].  Here it is:
http://www.haskell.org/libraryInfrastructure/proposal

See also the project home page:
http://www.haskell.org/libraryInfrastructure/

We would welcome your feedback, either as a potential library or tool
author, or as a potential consumer, or both.  The specification isn't
complete in every detail, but it seems better to post it before
investing in details that may be rendered void by subsequent
discussion.

We hope this will be an important spec, and will be with us for a long
time.  So now's the time to look at it.  Send feedback to
[EMAIL PROTECTED]  (You can subscribe to this list at:
http://www.haskell.org/mailman/listinfo/libraries .)

Sincerely,

Isaac Jones,
Simon Marlow,
Ross Paterson,
Malcolm Wallace,
Simon Peyton Jones


[1] This specification differs from the previous proposal both in
technical details, and in that it is the combined efforts of the
undersigned.  Those familiar with the previous proposal will not find
large high-level differences, but some details have been made more
concrete and some details have changed.
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] emacs haskell-mode indentation

2004-06-01 Thread Jeremy Shaw
At Tue, 1 Jun 2004 19:04:56 -0400,
Nathan Weston wrote:
 
 I am learning haskell from The Haskell School of Expression, and finding the 
 indentation in the emacs mode rather unhelpful. When I try to type in the 
 following example from the book:
 
 main = runGraphics (
do w - openWindow Graphics (300,300)
   drawInWindow w (text(100,200) Hello, world!)
   k - getKey w
   closeWindow w   
  )
 
 emacs wants to indent it like so:
 
 main = runGraphics (
do w - openWindow Graphics (300,300)
drawInWindow w (text(100,200) Hello, world!)
k - getKey w
closeWindow w   
  )
 
 (For those not using a fixed-width font, in the first example, everything 
 lines up under the 'w -', in the second, everything lines up under the 'do')
 
 If I let emacs have its way, I get a syntax error.
 Am I doing something wrong here? Is the emacs mode broken?

The emacs mode definately leaves much to be desired, you could try
formatting the code like this instead:

main = runGraphics $
   do w - openWindow Graphics (300,300)
  drawInWindow w (text(100,200) Hello, world!)
  k - getKey w
  closeWindow w

The type signature for $ is:

($) :: forall b a. (a - b) - a - b

I think the ($) operator was invented entirely for rewriting
expressions without parens...

Jeremy Shaw.
--

This message contains information which may be confidential and privileged. Unless you 
are the 
addressee (or authorized to receive for the addressee), you may not use, copy or 
disclose to anyone 
the message or any information contained in the message. If you have received the 
message in error, 
please advise the sender and delete the message.  Thank you.
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe