
29 Jan
2010
29 Jan
'10
12:10 a.m.
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