[Haskell-cafe] non POSIX/Win32 API support

2007-09-24 Thread Galchin Vasili
Hello, I want to provide support for another OS. How are the POISIX modules implemented? E.g. in terms of Green Card? Kind regards, Bill Halchin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] non POSIX/Win32 API support

2007-09-24 Thread Galchin Vasili
Thanks, Ian. Bill On 9/24/07, Ian Lynagh [EMAIL PROTECTED] wrote: On Mon, Sep 24, 2007 at 04:10:30PM -0500, Galchin Vasili wrote: I want to provide support for another OS. How are the POISIX modules implemented? E.g. in terms of Green Card? They use hsc2hs, the FFI and a splash

[Haskell-cafe] System.Posix

2007-10-15 Thread Galchin Vasili
Hello, In a Hugs environment, I am able to import System.Directory but not to import System.Posix. Here is my environment ... .;{Hugs}\packages\*;C:\ftp\CatTheory\Haskell\SOE\graphics\lib\win32\*. I really want to use the Posix module. Help!!! Kind regards, Bill Halchin

[Haskell-cafe] Re: System.Posix

2007-10-15 Thread Galchin Vasili
Hello, I am fairly familiar with 1st order logic ... hence I think I understand where Z (Zed) is going ... i.e. http://en.wikipedia.org/wiki/Z_notation. It seems to be based on the ZFC formal notion of set theory. 1) I have a formal spec in Z (Zed) and the implementation is in ANSI C. Can

Re: [Haskell-cafe] System.Posix

2007-10-16 Thread Galchin Vasili
On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: On Oct 16, 2007, at 3:25 , Galchin Vasili wrote: Hello, In a Hugs environment, I am able to import System.Directory but not to import System.Posix. Here is my environment ... .;{Hugs} \packages\*;C:\ftp\CatTheory\Haskell\SOE

[Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
Hello, In the Haskell libraries, is there an OS abstraction module, that would hide the POSIX API and Win-32 API? If not, this would be nice so that Haskell programs could be written in an OS independent manner! Kind regards, Bill Halchin ___

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
Hi Neil, I am really talking about a module or perhaps a Haskell class that provides notion for multiple threads of execution, semaphores, .. that hides POSIX vs Win32 APIs .. i.e. the underlying OS APIs would be totally hidden. The reason I bring this up is that OS abstraction layers are

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
class). Let me come up with a list of hypothetical functions to iluustrate my point. Thanks, Bill On 10/22/07, Tim Chevalier [EMAIL PROTECTED] wrote: On 10/22/07, Galchin Vasili [EMAIL PROTECTED] wrote: Hi Neil, I am really talking about a module or perhaps a Haskell class

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
Hi Neil, You misunderstand me. I am really tired of imperative langauges like C/C++ .. I work in industry (for a long time) and have programmed in ANSI C for more than 10 years. Please see my interleaves below. Regards, Bill On 10/22/07, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Bill

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
PS so far there are only a hand full of FPL shops .. like http://www.galois.com, http://www.skydesk.com, http://www.janestcapital.com/ . On 10/22/07, Galchin Vasili [EMAIL PROTECTED] wrote: Hi Neil, You misunderstand me. I am really tired of imperative langauges like C/C++ .. I work

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
yep FFI On 10/22/07, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Bill, I am really talking about a module or perhaps a Haskell class that provides notion for multiple threads of execution, semaphores, .. that hides POSIX vs Win32 APIs .. i.e. the underlying OS APIs would

Re: [Haskell-cafe] OS Abstraction module??

2007-10-22 Thread Galchin Vasili
Hi Ryan, Thanks for your generous response. By the way, you don't want to use typeclasses here; they solve the problem of having more than one possible interface at runtime, whereas you only care about compile-time .. in reality I do care about decisions made at run-time (this just struck me

[Haskell-cafe] Tim Sweeney and multi-cores .... and Haskell

2007-10-27 Thread Galchin Vasili
http://www.americanscientist.org/content/AMSCI/AMSCI/ArticleAltFormat/2007102151724_866.pdf ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Tim Sweeney and multi-cores .... and Haskell

2007-10-29 Thread Galchin Vasili
this would bring into mind Simon Peyton Jone's and Simon Marlow's STM research . Regards, Bill On 10/28/07, Sebastian Sylvan [EMAIL PROTECTED] wrote: On 28/10/2007, Galchin Vasili [EMAIL PROTECTED] wrote: http://www.americanscientist.org/content/AMSCI/AMSCI/ArticleAltFormat/2007102151724_866

[Haskell-cafe] Hugs running on cygwin

2007-10-30 Thread Galchin Vasili
Hello, When I was downloading and installing the cygwin tool set on my laptop, I noticed that Hugs doesn't appear to be in the toolset. What would it take to get Hugs running on top of cygwin? I guess the Hugs Makefile would have to be modified to correctly link in any of the cygwin Unix

[Haskell-cafe] XMonad architecture paper?

2007-11-07 Thread Galchin Vasili
Hello, I was watching Simon Peyton-Jones' video on A Taste of Haskell Part 1. .. Is there any paper discussing the architecture? I am not afraid to read code but sometimes a paper overview is good ... Regards, Vasya ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] XMonad architecture paper?

2007-11-07 Thread Galchin Vasili
Kind thanks, Don. Vasya On Nov 7, 2007 9:40 PM, Don Stewart [EMAIL PROTECTED] wrote: vigalchin: Hello, I was watching Simon Peyton-Jones' video on A Taste of Haskell Part 1. .. Is there any paper discussing the architecture? I am not afraid to read code but

[Haskell-cafe] O'Reilly Real World Haskell book

2007-11-10 Thread Galchin Vasili
Hello, What is the proposed table of contents for Real World Haskell? Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Why are OCaml and Haskell being used at these companies?

2007-11-12 Thread Galchin Vasili
Hello, Using http://www.indeed.com with the search phrase Haskell functional, I found several Haskell positions inclusing Quantitative Functional Programmer (Analyst -

[Haskell-cafe] Haskell library documentation question

2007-11-13 Thread Galchin Vasili
Hello, Is there anyway to get a .pdf version of http://www.haskell.org/ghc/docs/latest/html/libraries/? Kind regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] how does ghci and hugs handle redirecting of stdin/stdout?

2007-11-13 Thread Galchin Vasili
Thanks, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Erik Meijer's talk at Google?

2007-11-15 Thread Galchin Vasili
Hello, Last week (?) Erik Meijer gave a talk at Google. Has a video been uploaded somewhere? Kind regards, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] the interact function and Hugs/ghci on Windows ...

2007-11-15 Thread Galchin Vasili
Hello, I have a Haskell script that contains several functions that are implemented in terms on interact. When I do a function application, Hugs/ghci is waiting for input from stdin. How do one denote EOF from stdin, so that the function evaluation can continue and do the IO () action , ie..

[Haskell-cafe] question about ghci on windows ...

2007-11-21 Thread Galchin Vasili
Hello, I am reading through http://www.haskell.org/ghc/docs/latest/html/users_guide/index.html in particular the description of the boot libraries. I don't see how I can display function signatures from compiled code (i.e. .hi). ??? Kind regards, Vasya

Re: [Haskell-cafe] question about ghci on windows ...

2007-11-21 Thread Galchin Vasili
: openBinaryFile: does not exist (No such file or directory). ?? Thanks, Vasya On Nov 21, 2007 6:08 PM, Ian Lynagh [EMAIL PROTECTED] wrote: On Wed, Nov 21, 2007 at 05:46:35PM -0600, Galchin Vasili wrote: I am reading through http://www.haskell.org/ghc/docs/latest/html/users_guide/index.html

[Haskell-cafe] Using GHC as a library?

2007-11-21 Thread Galchin Vasili
Hello, I am reading 1) http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/API 2) http://haskell.org/haskellwiki/GHC/As_a_library Conceptually by allowing importation of GHC itself into a problem is this some kind of reification? Kind regards, vasya

Re: [Haskell-cafe] question about ghci on windows ...

2007-11-21 Thread Galchin Vasili
aha . ;^) thnaks, vaya On Nov 21, 2007 7:03 PM, Ian Lynagh [EMAIL PROTECTED] wrote: On Wed, Nov 21, 2007 at 06:57:55PM -0600, Galchin Vasili wrote: I am trying to dump out all function signatures exported from System.Directory. I just tried inside ghci: :! ghc --show-iface

[Haskell-cafe] Unix (Posix) low-level device driver functionality?

2007-11-23 Thread Galchin Vasili
Hello, I am seriously trying to push the mainstream computer industry. I am a kernel developer for POSIX OS's (e.g. Linux) and Windows. I would at the very least be able to write test/correctness software in Haskell where I am able to open Unix/Windows drivers and test storage firmware. The

[Haskell-cafe] very elementary import problem .. help

2007-11-23 Thread Galchin Vasili
Hello, import System.Posix --import Network import System.Process --import Directory import STM I am loading the above script in ghci. However, System.Posix, System.Processand STM cannot be found. Network and Directory are found. I assume when ghc is installed on Windows that the Windows

[Haskell-cafe] been scouring through the Haskell prelude to no avail ...

2007-11-24 Thread Galchin Vasili
Hello, Is there any predefined datatype that can be used to represent a two byte value? Kind regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] the ability to talk to POSIX device drivers

2007-11-27 Thread Galchin Vasili
Hello, I saw somewhere that in one of the Haskell libraries there is support to open, read, write, ioctl, etc. to POSIX drivers, but I don't see in the Haskell Report. ?? Kind regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] building a Haskell package on cygwin

2007-11-27 Thread Galchin Vasili
Hello, What is involved in building a package on cygwin? Kind regards, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Haskell packaging on Windows cygwin ( POSIX on Windows ; ^)

2007-11-28 Thread Galchin Vasili
29, 2007 12:08 AM, Galchin Vasili [EMAIL PROTECTED] wrote: 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

[Haskell-cafe] Haskell packaging on Windows cygwin ( POSIX on Windows ; ^)

2007-11-28 Thread 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

[Haskell-cafe] functional languages and the financial industry

2007-11-29 Thread Galchin Vasili
Hello, I have a job search agent/bot filtering for Haskell in particular ... it is interesting that a number are in the financial realm ... Check out ORIXnot to mention Jane Street ... Kind regards, Vasya ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: Haskell packaging on Windows cygwin ( POSIX on Windows ; ^)

2007-11-29 Thread Galchin Vasili
thank you everybody. my bad... a misspelling on my part ;^) Vasya On Nov 29, 2007 7:45 AM, Duncan Coutts [EMAIL PROTECTED] wrote: 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

[Haskell-cafe] doing builds using cygwin on Windows ....help

2007-11-29 Thread Galchin Vasili
Hello, I have suceeded in doing a build on top of cygwin. However, after editing some of the cygwin bashrc files, teh darcs path and haddock path still don't show up when I do a echo $PATH. I am now reading http://cygwin.com/cygwin-ug-net/setup-env.html. The PATH environment variable is

[Haskell-cafe] trouble building unix-2.2.0.0 on cygwin

2007-11-30 Thread Galchin Vasili
Hello, 0) All work being done on cygwin. Version 6.8.1 of ghc. 1) I ran runhaskell Setup.lhs configure and did a tail -f config.log in order to follow the config process. 2) Next I did the build runhaskell Setup.lhs build but there were many include files referenced in HsUnix.h

[Haskell-cafe] Re: trouble building unix-2.2.0.0 on cygwin

2007-11-30 Thread Galchin Vasili
More elaboration ... 1) i checked HsUnixConfig.h and the macro HAVE_SYS_TIMES_H is set to 1 On Nov 30, 2007 8:28 PM, Galchin Vasili [EMAIL PROTECTED] wrote: Hello, 0) All work being done on cygwin. Version 6.8.1 of ghc. 1) I ran runhaskell Setup.lhs configure and did a tail -f

[Haskell-cafe] who develops and maintains the Unix package?

2007-12-02 Thread Galchin Vasili
Hello, I am starting to get in the groove related to runhaskell -- config/builds on top of cygwin (I haven't had time to carve up hard drive and install Linux). In any case, I really want to get the Unix package to build on cgywin (as advertised at

[Haskell-cafe] Re: who develops and maintains the Unix package?

2007-12-02 Thread Galchin Vasili
On Dec 2, 2007 10:49 PM, Galchin Vasili [EMAIL PROTECTED] wrote: Hello, I am starting to get in the groove related to runhaskell -- config/builds on top of cygwin (I haven't had time to carve up hard drive and install Linux). In any case, I really want to get the Unix

[Haskell-cafe] more info on building the Unix package on cygwin

2007-12-02 Thread Galchin Vasili
Hello, I put an ugly kludge(on my laptop) in the unix.cabal file For the includes-dir attribute I explicited specified the path to the cygwin include directory. The Unix package build gets farther and then gets errors. At this point, it appears that the cygwin sys/types.h has a bug .. id_t

[Haskell-cafe] doing builds using cygwin on Windows

2007-12-03 Thread Galchin Vasili
To Nanonthief .. VasiliIGalchin wrote: .. however, I don't see in which file PATH can be set. Any help? I really want to get my Haskell build environment set up and cranking away. Unless I misunderstood what you want, you can add a path to the PATH variable by adding the line: export

[Haskell-cafe] when I am rebuilding a package that has package dependencies

2007-12-04 Thread Galchin Vasili
Hello, Which document discusses how to first build all dependencies and then finally the target package? I prefer to read relevant documentation so I get fully up to speed rather than take up bandwidth on this newsgroup asking one question at a time. Regards, Vasya

[Haskell-cafe] a positive challenge for the Haskell effort .....

2007-12-04 Thread Galchin Vasili
http://code.enthought.com/enthon/ .. how do Haskell libraries/packages stack up against this challenge? Kind regards, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] building HUnit and other packages on Windows cygwin ...

2007-12-04 Thread Galchin Vasili
Hello, I believe that HUnit has absolutely not other package dependencies. When I do a runhaskell Setup.hs build, I get the following error message: gcc: installation problem, cannot exec `cc1': No such file or directory. I am not sure what cc1 is? A pass/phase of the gnu gcc compiler? Kind

[Haskell-cafe] who are the contributors to the Unix package?

2007-12-06 Thread Galchin Vasili
Hello, Who started this effort? Who is currently doing work on the Unix package? Kind regards, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] a Char-Char function?

2007-12-08 Thread Galchin Vasili
Hello, I am writing a function(actually much more than this): bozo :: Char - Char bozo 0x02 = 'a' ... However, I get complaints from ghc suggesting that I should add an instance declaration (Num, Char). I (mistaking) thought I understood the Haskell class hierarchy and the associated

[Haskell-cafe] FFIpointer data types question

2007-12-21 Thread Galchin Vasili
Hi, If I am calling a ANSI function that requires a pointer to a C struct, which FFI pointer type should use? Kind regards, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Peyton Jones' Beautiful Concurrency .. i.e. Software Transactional Memory ...

2007-12-23 Thread Galchin Vasili
Hello, My brain is a out to lunch. I have read the paper Beautiful Concurrency (as well as a bunch of gaming papers regarding multi cores). I am playing with the Account example in the paper. In the paper, the alias type Account = TVar Int is used. I want to actually apply the function

[Haskell-cafe] more on the Beautiful Concurrency function withdraw application ...

2007-12-23 Thread Galchin Vasili
module Main where import Control.Concurrent.STM import Control.Concurrent import System.Random type Account = TVar Int transfer :: Account - Account - Int - IO () transfer from to amount = atomically (do {deposit to amount; withdraw from amount}) deposit :: Account

[Haskell-cafe] I am looking for the source code for STM implementation ...

2008-01-02 Thread Galchin Vasili
Hello, I found STM.c(lower layer), but cannot find the top layer code written Haskell.?? Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] US Homeland Security program language security risks

2008-01-03 Thread Galchin Vasili
Hello, https://buildsecurityin.us-cert.gov/daisy/bsi/articles/knowledge/coding/295.html I stumbled across this page. It seems that Haskell and other strongly typed functional languages like Ml/OCaml will fare much, much better, e.g. buffer overrun. Thoughts . comments. Vasili

[Haskell-cafe] Tim Sweeney (the gamer)

2008-01-09 Thread Galchin Vasili
Hello, I have been reading with great interested Tim Sweeney's slides on the Next Generation Programming Language. Does anybody know his email address? Kind regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] GHC API?

2008-01-10 Thread Galchin Vasili
Hello, I am reading http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/API. Is the GHC API a means of reflection Haskell? Or to put more simply what is its intent? Thanks, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] The reason why I want Tim Sweeney's email address ..

2008-01-10 Thread Galchin Vasili
Hello, http://www.coverity.com/html/library.php *Ensuring Code Quality in Multi-threaded Applications* ** *This white paper touches on Haskell's STM but also issues that Sweeney brought up in his slides(parallel programming in huge multi-cores and why the current thread-based paradigm

[Haskell-cafe] where is the FFI glue code for STM?

2008-01-11 Thread Galchin Vasili
Hello, I see where the top level code (written in Haskell)for STM. I have found STM.c;however, I can't seem to find the FFI glue code.? Thanks, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Poisx select support

2008-01-16 Thread Galchin Vasili
Hello, In the ghc libraries directory I can't find the Haskell .hs/.lhsthat implements Posix select. ?? I found Select.c. Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Poisx select support

2008-01-16 Thread Galchin Vasili
Hi Don, Sorry ..I wasn't clear enough.I am trying to determine from the Haskell FFI doc what datatype to use in order to model C's void *, e.g. for mmap http://www.opengroup.org/onlinepubs/95399/functions/mmap.html Regards, Vasili On 1/16/08, Don Stewart [EMAIL PROTECTED] wrote:

Re: [Haskell-cafe] Poisx select support

2008-01-16 Thread Galchin Vasili
Hi Don, I am looking at the code for ghc-6.8.2 but don't see the mmap support. Is this newly wriiten by you? I would also like to help round out the Posix functionality in Haskell. Is there an accurate list of what needs to be done given the fact that maybe some work is in progress but not

[Haskell-cafe] ghc and Red Hat 5 .rpm

2008-01-24 Thread Galchin Vasili
Hello, I have searching on http://haskell.org/ghc/download_ghc_682.html .. but can't find a ghc .rpm so that I can install ghc. ? Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] running into an unresolved linker error on RHEL 5

2008-01-25 Thread Galchin Vasili
Hello, I am building the unix-2.2.0.0. The linker is failing with -lgmp. I set export LD_LIBRARY_ATH=/bin:/usr/lib. I did a ls -l /usr/lib/*gmp* and I can see: libgmp.so.3 libgmp.so.3.3.3 libgmpxx.so.3 libgmpxx.so.3.0.5, i.e. either gmp shared objects and whatever the gmp xx shared objects

[Haskell-cafe] question about ghc run-time .a's

2008-01-28 Thread Galchin Vasili
Hello, I am trying to build Haskell packages on RedHat RHEL 5. How do I tell ghc where the .a (Linux archives) are? Is there an enviroment variable? Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] trying to use unix's openFD ..

2008-01-30 Thread Galchin Vasili
i.e. only the Linux CDROM device driver in read-only mode V. On Jan 30, 2008 11:23 PM, Galchin Vasili [EMAIL PROTECTED] wrote: I am trying to do the following on RedHat RHEL 5.0: main = do fs - openFd /dev/cdrom ReadOnly (Just ???) defaultFileFlags putStrLn (show fd) what

Re: [Haskell-cafe] trying to use unix's openFD ..

2008-01-30 Thread Galchin Vasili
, at 23:05 , Galchin Vasili wrote: Hello, The signature for openFD is openFd: FilePath - OpenMode - Maybe FileMode - OpenFileFlags - IO Fd I am currently reading http://www.haskell.org/ghc/docs/latest/html/ libraries/unix

Re: [Haskell-cafe] trying to use unix's openFD ..

2008-01-30 Thread Galchin Vasili
MY bad!!! I was trying to open /dev/cdrom/ and not dev/cdrom!!! and hence /dev/cdrom/ was correctly treated as a directory ... Vasili On Jan 30, 2008 11:25 PM, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On Jan 30, 2008, at 23:23 , Galchin Vasili wrote: I am trying to do

[Haskell-cafe] reading from the cdrom drive on Red Hat

2008-02-01 Thread Galchin Vasili
Hello, I wrote a simple program to read the contents of a cdrom: module Main where import Text.Printf import System.IO import System.Posix.Types import System.Posix.IO main = do fd - openFd /dev/cdrom ReadOnly Nothing defaultFileFlags readCdRom fd 4096 closeFd fd

Re: [Haskell-cafe] reading from the cdrom drive on Red Hat

2008-02-01 Thread Galchin Vasili
Thank you Adam and Bradley. My program is my getting a feel of how to open a Linux and do block reads. Just conceptual Vasili On 2/1/08, Adam Langley [EMAIL PROTECTED] wrote: On Feb 1, 2008 1:42 PM, Bryan O'Sullivan [EMAIL PROTECTED] wrote: No, it's the Haskell runtime turning a -1 return

[Haskell-cafe] building the unix package and cabal

2008-02-04 Thread Galchin Vasili
Hello, I have been trying to build the unix package on RedHat RHEL 5. Over the weekend I read through the Cabal documentation. The unix-2.2.0.0 unix.cabal specifies the build-type attribute as Configure. Based on Cabal doc, I should run ./configure. After this step then what? Bottom line is

Re: [Haskell-cafe] building the unix package and cabal

2008-02-04 Thread Galchin Vasili
more specifically the gmp unsatisfied ref shows up with the DynamicLinker. On 2/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: I don't know. Maybe someone on @cafe can help. (I CC'd) On Feb 4, 2008 5:22 PM, Galchin Vasili [EMAIL PROTECTED] wrote: I have the gmp shared objects installed

[Haskell-cafe] modeling ANSI C structs in Haskell?

2008-02-04 Thread Galchin Vasili
Hello, I am reading through the FFI doc. Any suggestions on enabling Haskell programmers to model ANSI C structs that will be passed down to C run-time? Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] building the unix package and cabal

2008-02-04 Thread Galchin Vasili
Hi Ian, I am trying to add new Posix functionality and it would be nice to be able to build unix myself. In any case, I will try your suggestion and see what happens. Regards, Vasili On 2/4/08, Ian Lynagh [EMAIL PROTECTED] wrote: On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili

Re: [Haskell-cafe] building the unix package and cabal

2008-02-05 Thread Galchin Vasili
. Regards, Vasili On 2/4/08, Ian Lynagh [EMAIL PROTECTED] wrote: On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili wrote: more specifically the gmp unsatisfied ref shows up with the DynamicLinker. This works for me, with GHC 6.8.2 and http://hackage.haskell.org/packages/archive/unix

[Haskell-cafe] question concerning ANSI void *

2008-02-07 Thread Galchin Vasili
Hello, Ok .. I am writing a Haskell function that will call down into the ANSI C library .. blah :: - Ptr Word8 - The underlying C function that blah is calling has a void * so I am using Ptr Word 8 to model the void *. I propose to have the callers of function blah to

Re: [Haskell-cafe] question concerning ANSI void *

2008-02-08 Thread Galchin Vasili
that this C struct is variable in length? From the FFI how would one model this C struct? Thanks, Vasili On 2/7/08, Adam Langley [EMAIL PROTECTED] wrote: 2008/2/7 Galchin Vasili [EMAIL PROTECTED]: Ok .. I am writing a Haskell function that will call down into the ANSI C library .. blah

Re: [Haskell-cafe] question concerning ANSI void *

2008-02-08 Thread Galchin Vasili
understand this. I see some of the poke functions mentioned in the FFI. Which one are you alluding to? Regards, Vasili On 2/8/08, Adam Langley [EMAIL PROTECTED] wrote: On Feb 8, 2008 9:13 AM, Galchin Vasili [EMAIL PROTECTED] wrote: Let's take a concrete but made up case .. suppose we want to call

Re: [Haskell-cafe] question concerning ANSI void *

2008-02-08 Thread Galchin Vasili
basically I am trying to implement ioctl for the Posix library .. so a possible signtaure would be: fdIoctl :: Fd - Int - Ptr Word 8 - IO( Ptr Word8) Vasili On 2/8/08, Galchin Vasili [EMAIL PROTECTED] wrote: a couple of concrete examples: typedef struct {char a; int b; char str[8

[Haskell-cafe] Support for Transaction Memory by Sun Microsystems ..

2008-02-22 Thread Galchin Vasili
Hello, Found this: http://www.theregister.co.uk/2007/08/21/sun_transactional_memory_rock/ http://research.sun.com/spotlight/2007/2007-08-13_transactional_memory.html vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] where is module System.Posix.Types?

2008-02-27 Thread Galchin Vasili
Hello, I don't see the types modules in with the other modules in the Posix pacakage, ?? Thanks, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] to stimulate discussion concerning where Haskell is going .. ...

2008-02-28 Thread Galchin Vasili
1) Berkeley consternation about the inability of current concurrency to keep up with multicor developments 1) http://www.eetimes.com/news/latest/showArticle.jhtml;jsessionid=CWDB5YTIKPC4QQSNDLPSKH0CJUNN2JVN?articleID=206801376pgno=2printable=true

Re: [Haskell-cafe] to stimulate discussion concerning where Haskell is going .. ...

2008-02-29 Thread Galchin Vasili
. Russell [EMAIL PROTECTED] wrote: --- Galchin Vasili [EMAIL PROTECTED] wrote: [snip] I have fished around and collected some Sun papers and slides. If any anybody wants I can post the URLs or send to the interested Yes, I am interested. Please post the URLs, and I will flag

[Haskell-cafe] .cabal problem

2008-03-01 Thread Galchin Vasili
Hello, I am trying to install a package on my Linux Ubuntu machine. It chokes build-depends: base, directory because directory dependency is unresolvable. Do I have to specify extra-libs so that correct library space is searched? Actually I tried this and it didn't help. ?? Regards, Vasya

Re: [Haskell-cafe] .cabal problem

2008-03-01 Thread Galchin Vasili
exactly .. I have version 6.6.1 ... question is how do I get the Unbuntu package for version 6.8? V. On Sat, Mar 1, 2008 at 8:02 PM, Adam Langley [EMAIL PROTECTED] wrote: 2008/3/1 Galchin Vasili [EMAIL PROTECTED]: I am trying to install a package on my Linux Ubuntu machine. It chokes

[Haskell-cafe] c_open and c_close signatures in the unix package

2008-03-08 Thread Galchin Vasili
Hello, I need to find the c_open and c_close signatures that are referenced in unix/System/Posix/IO.hsc. Thanks, Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] STM example code

2008-03-08 Thread Galchin Vasili
Hello, I am playing around with the STM API. I would like to see examples of STM other than the Santa.hs as I am having problems with STM vs IO. Thanks, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] linker question

2008-03-12 Thread Galchin Vasili
Hello, I have made modifications against an existing Haskell library and installed in my --prefix=$HOME. How do I specify to link against this test .a and not the global archive? Regards, vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Satnam Singh of Microsoft Research

2008-03-18 Thread Galchin Vasili
Hello, Recently Satnam Singh of Microsoft Research gave a talk at Google about concurrency, Haskell STM, etc. Was there a transcript of this talk? Thanks, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Satnam Singh of Microsoft Research

2008-03-18 Thread Galchin Vasili
PROTECTED] wrote: 2008/3/18 Galchin Vasili [EMAIL PROTECTED]: Recently Satnam Singh of Microsoft Research gave a talk at Google about concurrency, Haskell STM, etc. Was there a transcript of this talk? Do you have the exact date of this talk? I can't see that anyone called Satnam has

[Haskell-cafe] compile error with FFI code

2008-03-21 Thread Galchin Vasili
Hello, In my blah.hsc, I have allocbytes (#const (struct bozo)) .. where struct bozo is a bunch of long int ,,, In the runhaskell Setup.hs build step I get a nasty error message about an incomplete type. I have look at many times but this error doesn't make sense to me. ?? Kind regards,

[Haskell-cafe] more on FFI build error

2008-03-23 Thread Galchin Vasili
line #102 ... allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs - do definition of struct mq_attr on Linux ... struct mq_attr { long int mq_flags;/* Message queue flags. */ long int mq_maxmsg; /* Maximum number of messages. */ long int mq_msgsize; /* Maximum message

[Haskell-cafe] unix support

2008-04-01 Thread Galchin Vasili
Hello, On my personal computer, I added some functionality to the unix package and now I want to test this functionality. Basically I did a cabal install to the global env on my laptop. I just ran a session of ghci: [EMAIL PROTECTED]:~$ ghci GHCi, version 6.8.2: http://www.haskell.org/ghc/

[Haskell-cafe] compile-time question

2008-04-03 Thread Galchin Vasili
hello, I have added new function definitions to the namespace of an existing module. I did 1: runhaskell Setup.hs configure 2. runhaskell Setup.hs build 3) runhaskell Setup.hs install successfully so that a Linux .a(rchive) is installed. I write a small test case that references one of

[Haskell-cafe] Quick check?

2008-04-08 Thread Galchin, Vasili
Hello, What are some examples of libraries in HackageDB that use either Quick Check (pure side) or Monad testing? Is there a way to use darcs to answer my question? Thanks, vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Haskell library install question

2008-04-10 Thread Galchin, Vasili
Hello, I have configured, built and installed a library. When I runhaskell Setup.hs install, I noticed the message Registering unix-2.2.0.0... In what sense is it being registered? Can I query this registry information? Thanks, Vasili ___

Re: [Haskell-cafe] Haskell library install question

2008-04-10 Thread Galchin, Vasili
Thanks, Bulat. On Thu, Apr 10, 2008 at 9:18 AM, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello Vasili, Thursday, April 10, 2008, 6:12:45 PM, you wrote: Registering unix-2.2.0.0... In what sense is it being registered? Can I query this registry information? ghc-pkg -- Best regards,

[Haskell-cafe] library version problem

2008-04-10 Thread Galchin, Vasili
Hello, I doing work using Linux. The wrong version (for me) of the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do? Regards, vasili When I do:

Re: [Haskell-cafe] library version problem

2008-04-11 Thread Galchin, Vasili
get back to where i was in order to do a hide? Kind regards, Vasili On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver [EMAIL PROTECTED] wrote: 2008/4/10 Galchin, Vasili [EMAIL PROTECTED]: Hello, I doing work using Linux. The wrong version (for me) of the unix package seems

Re: [Haskell-cafe] library version problem

2008-04-11 Thread Galchin, Vasili
Hello, Is there better documentation for ghc-pkg than just help?? Vasili On Thu, Apr 10, 2008 at 9:36 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: Hi Philip, Before I got your email, I deregistered unix-2.3.0.0 which made my unix-2.2.0.0 namespace changes visible. However

Re: [Haskell-cafe] library version problem

2008-04-11 Thread Galchin, Vasili
e.g. with register what is filename .. a path? Is this path to the .a (archive) file on Unix systems? On Thu, Apr 10, 2008 at 9:38 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: Hello, Is there better documentation for ghc-pkg than just help?? Vasili On Thu, Apr 10, 2008 at 9:36 PM

Re: [Haskell-cafe] library version problem

2008-04-11 Thread Galchin, Vasili
I unregistered unix-2.3.0.0. I can no longer build the unix package via runhaskell. ?? Kind regards, Vasili On Thu, Apr 10, 2008 at 9:39 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: e.g. with register what is filename .. a path? Is this path to the .a (archive) file on Unix systems? On Thu

  1   2   3   4   >