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

2009-10-16 Thread Erik de Castro Lopo
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

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

2009-10-16 Thread zaxis
Hoogle is great ! thanks! Thomas DuBuisson wrote: > > Modules come from Haskell packages, most of which can be found on > hackage.haskell.org. > > If you are looking for a module but you don't know which package it > comes from then feel free to search using hoogle or hayoo!. Obviously > man

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

2009-10-16 Thread Thomas DuBuisson
Modules come from Haskell packages, most of which can be found on hackage.haskell.org. If you are looking for a module but you don't know which package it comes from then feel free to search using hoogle or hayoo!. Obviously manually checking all the seemingly related packages on hackage is also

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

2009-10-16 Thread zaxis
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. So i download and install regex-base and regex-posix from Hackage. But it still doesnot wo