[Haskell-cafe] Re: Using tiny (atomic) mutables between multiple threads

2009-09-13 Thread Felix Martini
Bulat Ziganshin wrote: i suggest you to use IORef Bool instead - as it was said once by SimonM, it's safe to use in m/t environment, of course without all fancy features of MVar locking Is it also safe for other types such as Int? And is this documented somewhere? If not it would be helpful to

[Haskell-cafe] Re: Cabal install on Windows 7

2009-09-10 Thread Felix Martini
Is there any %LOCALAPPDATA% on Windows XP? If not, what is the difference between %LOCALAPPDATA% and %APPDATA% in Windows Vista/7? XP does not define the %LOCALAPPDATA% environment variable, but it is equivalent to %USERPROFILE%\Local Settings\Application Data. Data in local application data

Re: writeFile/readFile on multiple threads leads to error

2009-04-22 Thread Felix Martini
2009/4/22 Simon Marlow: You might want to run the process under ProcMon and see if you can figure out what's going on (if you can bear to use ProcMon, it's a very poor replacement for strace IMO). You could try StraceNT instead (not as good as strace though).

Re: [Haskell-cafe] [ANN] I/O library for Windows

2009-03-26 Thread Felix Martini
As I understand it, programs compiled with GHC currently use MSYS for all I/O operations, resulting in all kinds of strange behaviour in corner cases. (E.g., if you use System.Directory and ask whether C:\\ is a directory, it says no, yet you can read the contents of that directory.) I would

[Haskell-cafe] [ANN] I/O library for Windows

2009-03-21 Thread Felix Martini
Hi all, winio is an I/O library for Windows using Windows API functions and has I/O completion port support. The main goal of this library is to support Simon Marlow's new Handle API once he has added that to GHC. The library also has a compatibility module for socket functions from the

[Haskell-cafe] Hoogle and Network.Socket

2009-02-19 Thread Felix Martini
The Network.Socket module works fine on Windows. The original Winsock implementation was based on the Berkeley sockets api. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Building GHC on Windows

2009-02-17 Thread Felix Martini
Hi all, Simon Marlow has recently posted a patch that adds Unicode support to Handle I/O. He mentioned that it didn't work yet on Windows so i was thinking of looking at the source code to see how the new Unicode support works and perhaps try to make it work on Windows. I have built GHC from

Re: [Haskell-cafe] HSGI: Haskell Server Gateway Interface

2009-02-07 Thread Felix Martini
Hi Manlio, Have you looked at http://www.haskell.org/haskellwiki/WebApplicationInterface ? If you did is there something in that proposal that you think should be changed or is not clear? There is currently a lot of interest in writing web frameworks for Haskell and it would be great if the

Re: [Haskell-cafe] HSGI: Haskell Server Gateway Interface

2009-02-07 Thread Felix Martini
There is a separate channel where we can discuss in detail? Or should I just use this thread? This is a good topic for the web-de...@haskell.org list. I'll post my reply there. Felix ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Haskell Web Framework

2009-01-25 Thread Felix Martini
Hi Michael, May i suggest Johan Tibell's web application interface (see http://github.com/tibbe/hyena/tree/master). It is similar to WSGI. Hyena can then be used as an application server and frameworks won't have to create their own servers. Many people have different opinions about web

[Haskell-cafe] Use of abbreviations in Haskell

2009-01-02 Thread Felix Martini
Hi all, There is currently a discussion on reddit/programming about Haskell. One complaint is that Haskell functions often use abbreviated names. I tend to agree with that. In my personal experience it generally takes more time to learn a third party Haskell library than libraries written in

[Haskell-cafe] Re: Problems with Windows

2008-10-30 Thread Felix Martini
Hi John, You don't have to compile hsc2hs yourself. It is part of the standard GHC installation. Cabal should be able to find it. You can check if it does by running runghc Setup.hs configure -v when configuring a package. Compiling network-2.2.0.0 against parsec-3.0.0 with msys/mingw worked fine

Re: Version control systems

2008-08-06 Thread Felix Martini
and Windows support is less of an issue: git appears to work reasonably well on Windows these days. Congratulations on the switch, but isn't the decision a bit premature? I have read the log of last week's GHC meeting on IRC and nobody seemed to know if Git runs well on Windows with a large

Re: [Haskell-cafe] lookup tables style guidelines

2008-04-24 Thread Felix Martini
What are good options for concurrent dictionaries? A while ago i wrote a concurrent hash table prototype, but there are probably better solutions for Haskell. Regards, Felix ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Ann: Win32-notify 0.1

2008-04-20 Thread Felix Martini
Conal Elliott: I'd love to see this functionality available cross-platform. Are there plans for a unified library with a single API? +1 It would be nice if the two inotify packages and this one could be combined. And if someone would add a kqueue backend for the BSD's and OSX then most

Re: [Haskell-cafe] Need Cabal/library building help for windows

2008-03-18 Thread Felix Martini
Alistair Bayley wrote: Upgrading GHC to fix this seems a little extreme. You can just add gcc-lib (i.e. C:\ghc\ghc-6.8.1\gcc-lib) to your path. Version 6.8.2 is a bugfix release over 6.8.1 and fixes other bugs as well. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Need Cabal/library building help for windows

2008-03-17 Thread Felix Martini
Ryan Ingram wrote: For reference, I'm using GHC6.8.1 on WinXP. setup.hs: ld is required but it could not be found. I did have the same issue with GHC 6.8.1 on Windows. It is fixed in version 6.8.2. http://haskell.org/ghc/download_ghc_682.html#windows Regards, Felix

Re: [Haskell-cafe] Haskell + Windows Mobile?

2008-02-24 Thread Felix Martini
Bulat Ziganshin wrote: is there any haskell implementation for Windows Mobile? does they are support creation of GUI apps and internet networking features? CeGCC (http://cegcc.sourceforge.net/) is a cross compiler for Windows CE, so it's possible to port GHC to Windows Mobile with some

[Haskell-cafe] ANN: winerror-0.1

2008-02-17 Thread Felix Martini
This is a small package for error handling when making foreign calls to the Windows API. The functions are similar to those in Foreign.C.Error, e.g. throwWinErrorIf corresponds to throwErrnoIf. Dynamic io errors are thrown with GHC so the catchWinError function can catch specific Windows error

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Felix Martini
Magnus Therning wrote: Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler shipped with Visual Studio Express)? Duncan Coutts wrote: The problem is to get GHC to use 'cl'. That's a longer term project that GHC HQ are interested in. There's something about it on the GHC dev

Re: GHC on Solaris Nevada

2008-01-27 Thread Felix Martini
I have located the problem i had with GHC. I had compiled the readline library from a spec file. Apparently it is not compatible with the binary GHC release. With the prebuilt readline package from sunfreeware GHC works fine now. Regards, Felix ___

Re: GHC on Solaris Nevada

2008-01-26 Thread Felix Martini
Christian Maeder wrote: Maybe my new binary release is easier to install Your new release installed ok, but GHC does not work on my system. I can compile a simple hello world program, but running ghci or doing other compilations result in program termination of GHC and the terminal. GHC 6.6 did

GHC on Solaris Nevada

2008-01-24 Thread Felix Martini
Hello all, I am trying to get a working GHC on Solaris Nevada (Solaris 11). I've tried the binary versions for Solaris 10 made by Christian Maeder. I couldn't get GHC 6.8.2 to install properly and GHC 6.6 does not work (it crashes the moment it needs to link to a library). After that i tried to

Re: Integrating editline with ghc

2008-01-17 Thread Felix Martini
On Jan 17, 2008 2:08 PM, Yitzchak Gale wrote: I would hope that ghc will link to editline-ext on all platforms. Unfortunately it seems that editline cannot currently be build on Windows. I have tried to build the editline source from http://www.thrysoee.dk/editline/ with MinGW/msys. Pdcurses

Re: Re[2]: ANNOUNCE: GHC version 6.8.2

2007-12-17 Thread Felix Martini
On Dec 16, 2007 10:56 AM, Duncan Coutts wrote: Note that for data files like the .ghci file it's probably better to use getAppUserDataDirectory ghci which will return $HOME/.ghci on unix systems and C:/Documents And Settings/user/Application Data/ghci on Windows. I've added a proposal and a

Re: Re[2]: ANNOUNCE: GHC version 6.8.2

2007-12-16 Thread Felix Martini
On Dec 16, 2007 2:21 AM, Yitzchak Gale wrote: The current behavior is not more WIndows native - it is arguably much worse. The %HOMEPATH% variable should definitely not be used. The folder that it points to is not a home directory and should not be used that way. That's not correct. It is

Re: ANNOUNCE: GHC version 6.8.2

2007-12-14 Thread Felix Martini
On Dec 14, 2007 11:46 PM, Duncan Coutts [EMAIL PROTECTED] wrote: It sounds like a bad idea to me. I agree with your initial reaction and principle that we don't want to be baking Un*x behaviour into APIs that are supposed to do whatever is native on the current platform. I agree with Duncan.

Re: Windows overlapped IO

2007-11-22 Thread Felix Martini
Hi all, Overlapped IO support for files and sockets is now in place in my test version of ghc-head. File functions use the win32 api and large files and Unicode filenames are supported (i'm not sure if ghc currently supports that for Windows). I've addded a new type Hdl which is an alias for FD

[Haskell-cafe] Source code for Visual Haskell

2007-11-22 Thread Felix Martini
Hi all, The documentation of Visual Haskell mentions that the source code is available under a BSD license. The code is not available from the download page (http://www.haskell.org/visualhaskell/downloads.html). Does anone know where to get it? ___

Windows overlapped IO

2007-11-15 Thread Felix Martini
I have made a prototype for overlapped IO that works with a modified version of Takano Akio's SSC library. I have been trying to add it to GHC's IO implementation but there are some issues. Instead of file descriptors windows handles are needed. The GHC handle implementation is currently based