[Haskell] regular expression syntax - perl ain't got nothin on haskell

John Meacham john at repetae.net
Tue Feb 24 13:46:54 EST 2004


On Tue, Feb 24, 2004 at 09:01:46AM +0000, Graham Klyne wrote:
> I recently ran into some problems porting some Haskell code to Windows 
> because it used the Text.Regex library, which is dependent on a Unix-only 
> system.  If Haskell is to embrace the use of Regexes to a level comparable 
> with (say) Perl, I think it is important that the underlying library is 
> available on all platforms on which Haskell is supported, or I fear that a 
> large swathe of Haskell support libraries will be unavailable to programs 
> running on Windows.
> 
> So my point would be that, to be most useful to the Haskell community, your 
> effort should also be supported by a Text.Regex implementation (or 
> alternative) for Windows systems.

My code mainly defines a re-usable syntax and includes a 'sample'
implementation based on Text.Regex. I expect there will be other more
interesting implementations such as a pure haskell version and a PCRE
one. I am sure something that works on windows will be available if the
library becomes at all popular.

Perhaps implementations isn't the best word, since their features might
vary wildly. (PCRE vs. posix) for example.
        John

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john at foo.net
---------------------------------------------------------------------------


More information about the Haskell mailing list