Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,270
    • Issues 4,270
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 413
    • Merge Requests 413
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #8

Closed
Open
Opened Oct 05, 2001 by xoltar@trac-xoltar

Regex failure

Working through samples from the Great Computer
Language Shootout, I wrote a Haskell program which is
supposed to be basically equivalent to the perl program at:

http://www.bagley.org/~doug/shootout/bench/regexmatch/regexmatch.perl

And in fact I copied the regular expression directly
from the perl example and used search and replace to
change single backslashes to double backslashes to deal
with Haskell vs. Perl strings.

But the regex fails to match where it should. Since I
copied the regex directly from the working perl script,
I'm pretty sure it's correct. Since the RegexString
modules says the regex syntax is that of Perl, I'm
reporting it as a bug.

The haskell file is attached. It is intended to be run
with an integer command line argument (2 is fine), and
input piped from the file at:

http://www.bagley.org/data/shootout/regexmatch/Input

I'm on Windows NT 4.0 sp4 and GHC 5.02.
Trac metadata
Trac field Value
Version 5.02
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component hslibs/text
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#8