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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe