[Haskell] Fwd: Mutually dependent functions
haskell at list.mightyreason.com
haskell at list.mightyreason.com
Mon Jun 11 18:37:12 EDT 2007
You may also want to read the discussions on and linked to from:
http://www.haskell.org/haskellwiki/Regular_expressions
You may also want to consult my regular expression library regex-tdfa which has
a Parsec parser for extended regular expressions at:
http://darcs.haskell.org/packages/regex-unstable/regex-tdfa/Text/Regex/TDFA/ReadRegex.hs
which makes a Pattern data type as the result of parsing which is defined in:
http://darcs.haskell.org/packages/regex-unstable/regex-tdfa/Text/Regex/TDFA/Pattern.hs
The laziness works for multiple functions but it must be correct. In "c" it is
easy to make "goto" based code into an infinite loop, or to dereference a null
pointer. In Haskell it is easy to define "x=y ; y=x" and enter an infinite loop.
--
Chris Kuklewicz
More information about the Haskell
mailing list