how to parse

1995-09-27 Thread S.D.Meshveliani
Could anybody explain me how to organize parsing in Haskell ? Examples. lex " ( + 2 3)" -- [ ( "(", " + 2 3)" ) ] - it does too little, only separates one lexeme. reads " 12+3" :: [(Int,String)] -- [ (12, "+3" ) ] reads " (1+2)" :: [(Int,String)] -- [] - this is

Call for Participation FPLE'95

1995-09-27 Thread parijs
CALL FOR PARTICIPATION The First International Symposium on Functional Programming Languages in Education (FPLE'95) 4 - 6 December 1995,

suggestion for Prelude,Library style

1995-09-27 Thread S.D.Meshveliani
A very simple suggestion for the programming style of Prelude, Library ... : to minimize the number of function names using options. Thus, we see in ghc-0.26 library quicksort:: (a - a - Bool) - [a] - [a] sortLt :: (a - a - Bool) - [a] - [a] stableSortLt :: (a - a - Bool)

Re: Modules and interfaces

1995-09-27 Thread Simon L Peyton Jones
The goal of having a human-written interface is to give the programmer the opportunity to say (and document) just what the interface of a module is. I think of this as analogous to specifying a type signature for a function... often illuminating, but should not be obligatory. Especially when