Changeset 13513 for src/Pugs/Prim/Match.hs
- Timestamp:
- 09/21/06 00:52:34 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r13373 r13513 47 47 return (name, text) 48 48 text <- ruleWithAdverbs rule 49 pge <- liftIO $ evalPCR pwd (encodeUTF8 cs) (encodeUTF8 text) subrules 49 rv <- liftIO $ fmap (fmap (fmap toUpper)) (getEnv "PUGS_REGEX_ENGINE") 50 let ruleEngine | Just "PGE" <- rv = evalPGE 51 | otherwise = evalPCR 52 pge <- liftIO $ ruleEngine pwd (encodeUTF8 cs) (encodeUTF8 text) subrules 50 53 `catchIO` (\e -> return $ show e) 51 54 rv <- tryIO Nothing $ fmap Just (readIO $ decodeUTF8 pge)
