[GHC] #3059: 3 different behaviours depending on profiling
settings and on a used-only-once form being top-level
GHC
trac at galois.com
Mon Mar 2 07:03:07 EST 2009
#3059: 3 different behaviours depending on profiling settings and on a used-only-
once form being top-level
----------------------+-----------------------------------------------------
Reporter: jkff | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Windows | Architecture: x86
----------------------+-----------------------------------------------------
Comment (by ChrisKuklewicz):
{{{
module Text.Regex.TDFA.Wrap...
(=~) :: (RegexMaker Regex CompOption ExecOption source,RegexContext Regex
source1 target)
=> source1 -> source -> target
(=~) x r = let make :: RegexMaker Regex CompOption ExecOption a => a ->
Regex
make = makeRegex
in match (make r) x
}}}
The =~ API is very high level — if you need to cache the compiled regular
expression then you should not depend on the compiler, but rather use
"makeRegex" explicitly.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3059#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list