Haskell packaging on Windows "cygwin" (<< POSIX on Windows ; ^)

Hello, I trying to get a library to build ... I am following the instructions in http://en.wikibooks.org/wiki/Haskell/Packaging. Under the "Build your project" section in this web page, when I try to do an actual build (runhaskell Setup.lhs build), the imported module System.Environment cannot be found. I suspect that there is a "cygwin" ("Linux/Posix") environment variable that needs to be set to point to the Haskell libraries/packages. ?? Kind regards, Vasya

The message I actually receive is:
runhaskell Setup.lhs build ....
.....
./Haq.hs:6:7:
Could not find module `System.Environment':
it is a member of a package base, which is hidden
BTW I haven't actually checked source in via darcs due to cygwin $PATH
problems ...
vasya
On Nov 29, 2007 12:08 AM, Galchin Vasili
Hello,
I trying to get a library to build ... I am following the instructions in http://en.wikibooks.org/wiki/Haskell/Packaging. Under the "Build your project" section in this web page, when I try to do an actual build (runhaskell Setup.lhs build), the imported module System.Environment cannot be found. I suspect that there is a "cygwin" ("Linux/Posix") environment variable that needs to be set to point to the Haskell libraries/packages. ??
Kind regards, Vasya

On Thu, 2007-11-29 at 00:21 -0600, Galchin Vasili wrote:
The message I actually receive is:
runhaskell Setup.lhs build .... .....
./Haq.hs:6:7: Could not find module `System.Environment': it is a member of a package base, which is hidden
BTW I haven't actually checked source in via darcs due to cygwin $PATH problems ...
Have you tried adding: build-depends: base you your .cabal file? Cabal enforces that your code may only use packages that you have explicitly stated your code depends on. Duncan

thank you everybody. my bad... a misspelling on my part ;^)
Vasya
On Nov 29, 2007 7:45 AM, Duncan Coutts
On Thu, 2007-11-29 at 00:21 -0600, Galchin Vasili wrote:
The message I actually receive is:
runhaskell Setup.lhs build .... .....
./Haq.hs:6:7: Could not find module `System.Environment': it is a member of a package base, which is hidden
BTW I haven't actually checked source in via darcs due to cygwin $PATH problems ...
Have you tried adding:
build-depends: base
you your .cabal file?
Cabal enforces that your code may only use packages that you have explicitly stated your code depends on.
Duncan
participants (2)
-
Duncan Coutts
-
Galchin Vasili