[Haskell-cafe] Could not find module `Text.Regex'
Don Stewart
dons at galois.com
Fri Jan 29 00:10:55 EST 2010
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
More information about the Haskell-Cafe
mailing list