[Haskell-cafe] Haskell Report??
byorgey at gmail.com
Wed Oct 24 11:37:47 EDT 2007
On 10/23/07, Galchin Vasili <vigalchin at gmail.com> wrote:
> I am trying to use a Haskell shell (Hsh.hs). I am a little
> frustrated. There are two modules that are imported:
> import LibPosix
> import LibSystem
> I am running WinHugs (Windows) and hugs/ghci can't find LibSystem. I am
> confused about 1) what are currently standard libraries, etc. in Haskell, 2)
> what is deprecated and 3) what are "home grown tomatoes" ;^) How current
> and definitive is the Haskell Report?
> Kind regards, Bill Halchin
For currently standard GHC libraries, see here:
'LibPosix' and 'LibSystem' look like names from before the current
hierarchical module system was adopted, so it would seem that code is
somewhat outdated. LibPosix should probably be System.Posix, but I'm not
sure what used to be in LibSystem and where it could be found now. If
you're determined to get it to work, try searching the libraries for the
names of systemish-looking functions in Hsh.hs, and see if you can find in
what modules they now live, and import those. No promises that the APIs
haven't changed, though, so you might still have problems anyway.
The Haskell Report is "definitive" but not very current (it is almost 10
years old at this point). In practice, there are many extensions to the
language and libraries which are fairly widespread and standard but are not
documented in the Report. Hopefully Haskell' will fix that, but no telling
when that will be done!
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe