#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
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs