Could not find module `Text.Regex'

import Text.Regex date_by_ntday dateStr ntday = do let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr .... %ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1 Which package(s) do i need to use Text.Regex ? Sincerely! ----- fac n = foldr (*) 1 [1..n] -- View this message in context: http://old.nabble.com/Could-not-find-module-%60Text.Regex%27-tp27366745p2736... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

On 29/01/2010 03:51, zaxis wrote:
import Text.Regex
date_by_ntday dateStr ntday = do let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr ....
%ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Which package(s) do i need to use Text.Regex ?
Sincerely!
It looks like you want regex-compat: http://hackage.haskell.org/packages/archive/regex-compat/0.92/doc/html/Text-...

`cabal install regex-compat` fixes my problem. thanks! Lee Houghton-3 wrote:
On 29/01/2010 03:51, zaxis wrote:
import Text.Regex
date_by_ntday dateStr ntday = do let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr ....
%ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Which package(s) do i need to use Text.Regex ?
Sincerely!
It looks like you want regex-compat:
http://hackage.haskell.org/packages/archive/regex-compat/0.92/doc/html/Text-...
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- fac n = foldr (*) 1 [1..n] -- View this message in context: http://old.nabble.com/Could-not-find-module-%60Text.Regex%27-tp27366745p2736... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

On Fri, Jan 29, 2010 at 1:09 AM, zaxis
`cabal install regex-compat` fixes my problem. thanks!
For what it's worth, according to the documentation the "-compat" package is for easing a transition in the api (which has now been completed). You may want to "upgrade" to a different package now, for instance regex-posix (which I've found to be in a nice spot between portability and performance). Jason

z_axis:
import Text.Regex
date_by_ntday dateStr ntday = do let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr ....
%ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Which package(s) do i need to use Text.Regex ?
In general, you can find an answer via hayoo: http://holumbus.fh-wedel.de/hayoo/hayoo.html e.g typing in "Text.Regex" brings: http://holumbus.fh-wedel.de/hayoo/hayoo.html?query=Text.Regex says, for the first hit: regex-compat Text.Regex. splitRegex :: Regex -> String -> [ String ] so yes, you need regex-compat

yeah , cabal install regex.compat fixes my problems ,2 . Thx . On Friday, January 29, 2010 11:51:23 AM UTC+8, zaxis wrote:
import Text.Regex
date_by_ntday dateStr ntday = do let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr ....
%ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1
Which package(s) do i need to use Text.Regex ?
Sincerely!
----- fac n = foldr (*) 1 [1..n] -- View this message in context: http://old.nabble.com/Could-not-find-module-%60Text.Regex%27-tp27366745p2736... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskel...@haskell.org javascript: http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Don Stewart
-
Gaoang Liu
-
Jason Dagit
-
Lee Houghton
-
zaxis