[Haskell-cafe] There is no Text.Regex module

Erik de Castro Lopo mle+hs at mega-nerd.com
Sat Oct 17 01:45:44 EDT 2009


zaxis wrote:

> 
> In Archlinux i can use Text.Regex as below:
> import Text.Regex
> let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr
> 
> However, in Ubuntu 9.10 it doesnot work reporting no Text.Regex module

If you installed ghc6 from a package you should do:

   sudo apt-get install libghc6-regex-*

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list