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
The First International Symposium
on
Functional Programming Languages
in
Education
(FPLE'95)
4 - 6 December 1995,
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)
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