[Haskell-beginners] wrapping text in a multiline string
Chaddaï Fouché
chaddai.fouche at gmail.com
Sun Jun 10 14:05:45 CEST 2012
On Sun, Jun 10, 2012 at 2:04 PM, Chaddaï Fouché
<chaddai.fouche at gmail.com> wrote:
>
>> regexMaybeReplace :: String -> (String -> String) -> String -> Maybe String
>> regexMaybeReplace pattern replace text = do
>> let compOpts = RE.compMultiline + RE.compDotAll
>> regex <- RE.makeRegexOpts compOpts RE.defaultExecOpt pattern
Oops, of course I meant :
> regex <- RE.makeRegexOptsM compOpts RE.defaultExecOpt pattern
More information about the Beginners
mailing list