Re: [Haskell-cafe] Could not find module `Text.Regex'

2012-09-16 Thread Gaoang Liu
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

Re: [Haskell-cafe] Could not find module `Text.Regex'

2010-01-29 Thread zaxis
`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

Re: [Haskell-cafe] Could not find module `Text.Regex'

2010-01-29 Thread Jason Dagit
On Fri, Jan 29, 2010 at 1:09 AM, zaxis z_a...@163.com wrote: `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

[Haskell-cafe] Could not find module `Text.Regex'

2010-01-28 Thread zaxis
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

Re: [Haskell-cafe] Could not find module `Text.Regex'

2010-01-28 Thread Don Stewart
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,