[Haskell-cafe] Haskellers in Minsk, Belarus?

2013-10-05 Thread Yuras Shumovich
Hi, I just read an article (sorry, it is in russian: http://habrahabr.ru/post/196454/ ). The idea I found interesting: even in big citied developers complain that nothing happens at their location, but when you try to make an event -- only few of them want to participate. I never participate in

Re: [Haskell-cafe] enumerators: exception that can't be catched

2013-08-29 Thread Yuras Shumovich
an exception on client disconnect. On Tue, Aug 27, 2013 at 10:28 AM, Yuras Shumovich shumovi...@gmail.com wrote: Hello, I'm debugging an issue in websockets package, https://github.com/jaspervdj/websockets/issues/42 I'm not familiar

Re: [Haskell-cafe] enumerators: exception that can't be catched

2013-08-29 Thread Yuras Shumovich
Left immediately. So, throwError in enumerator can't be caught. Is it correct? Then it seems to be a design bug in websockets -- it is not possible to know from the WebSockets monad that client closed connection. Thanks, Yuras On Thu, 2013-08-29 at 14:04 +0300, Yuras Shumovich wrote: Hi, Thank

[Haskell-cafe] enumerators: exception that can't be catched

2013-08-27 Thread Yuras Shumovich
Hello, I'm debugging an issue in websockets package, https://github.com/jaspervdj/websockets/issues/42 I'm not familiar with enumerator package (websockets are based on it), so I'm looking for help. The exception is throws inside enumSocket enumerator using throwError (

Re: [Haskell-cafe] Prolog-style patterns

2013-04-08 Thread Yuras Shumovich
Hi, On Mon, 2013-04-08 at 07:06 -0700, Conal Elliott wrote: What you're suggesting is called non-linear patterns, and it's a perfectly sensible, well-defined feature in a language with pattern-matching. As you point out, non-linearity allows for more direct succinct programming. I've often

[Haskell-cafe] ANN: pdf-toolbox

2013-03-23 Thread Yuras Shumovich
Hello, I have uploaded the first release of my pdf toolbox, a collection of tools for processing PDF files. It supports both parsing and generating of pdf files. It consists of two libraries: - core ( http://hackage.haskell.org/package/pdf-toolbox-core ) contains low level tools. - document

Re: [Haskell-cafe] websockets client

2013-02-21 Thread Yuras Shumovich
Hi, websockets package has basic support for client-side applications: http://hackage.haskell.org/packages/archive/websockets/0.7.2.1/doc/html/Network-WebSockets.html#g:12 AFAIK it is the only available option right now (except implementing it yourself.) Thanks, Yuras On Thu, 2013-02-21 at

Re: [Haskell-cafe] multi-thread and lazy evaluation

2012-12-25 Thread Yuras Shumovich
://hackage.haskell.org/trac/ghc/ticket/7528) Timothy -- Původní zpráva -- Od: Yuras Shumovich shumovi...@gmail.com(mailto:shumovi...@gmail.com) Datum: 24. 12. 2012 Předmět: Re: [Haskell-cafe] multi-thread and lazy evaluation On Mon, 2012-12-24 at 16:16 +0100, timothyho

Re: [Haskell-cafe] multi-thread and lazy evaluation

2012-12-24 Thread Yuras Shumovich
On Mon, 2012-12-24 at 16:16 +0100, timothyho...@seznam.cz wrote: The real question is, does this mean that GHC is stopping the world every time it puts an MVar? No, GHC rts only locks the MVar itself. See here: http://hackage.haskell.org/trac/ghc/browser/rts/PrimOps.cmm#L1358 Yuras

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
On Sat, 2012-10-06 at 17:02 +0200, José Lopes wrote: Hello, Hello I'm trying to understand Cabal dependencies. Why does the following situation happen? xmobar-0.15 depends on mtl-2.0.* and needs parsec All packages that will be broken, depends on parsec. But parsec is compiled with

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
On Sat, 2012-10-06 at 18:25 +0200, José Lopes wrote: OK. But, wouldn't it be possible for xmobar to use mtl-2.0.1.0 and for parsec to use mtl-2.1.1, while xmobar would use this parsec version? In this case, I am assuming that mtl-2.0.1.0 and mtl-2.1.1 are considered two different

Re: [Haskell-cafe] Cabal dependencies

2012-10-06 Thread Yuras Shumovich
are lost. Warning: it may break your development environment, so make sure you know what you are doing. Better solution could be sandbox tools like cabal-dev. They alloy you to setup development environment per project. Thanks, José On 06-10-2012 19:08, Yuras Shumovich wrote: On Sat, 2012-10

[Haskell-cafe] ANNOUNCE: bindings-gobject-0.4

2012-09-29 Thread Yuras Shumovich
Hello, I uploaded new release of bindings-gobject, low level binding to gobject library: http://hackage.haskell.org/package/bindings-gobject-0.4 (I maintain it now) Now it exposes internals of GObject and GObjectClass, so it is possible to create custom GObject subclasses from haskell land.

Re: [Haskell-cafe] How do I marshall a pointer over SendMessage LPARAM or WPARAM?

2012-07-18 Thread Yuras Shumovich
On Wed, 2012-07-18 at 18:22 +0200, Simon Peter Nicholls wrote: Some sending code: Foreign.C.String.withCWString frustrator $ \s - do let wParam = System.Win32.Types.castPtrToUINT s :: System.Win32.Types.WPARAM Graphics.Win32.sendMessage wnd

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12

2012-03-11 Thread Yuras Shumovich
Hi, I can confirm the issue with gtksourceview2.h Also I have the next error with leksah-server: src/IDE/Core/CTypes.hs:548:10: Duplicate instance declarations: instance NFData Version -- Defined at src/IDE/Core/CTypes.hs:548:10-23 instance NFData Version -- Defined in

Re: [Haskell-cafe] ghc HEAD

2010-09-07 Thread Yuras Shumovich
2010/9/7 Johannes Waldmann waldm...@imn.htwk-leipzig.de: I was compiling  ghc-6.13.20100831 from source (*) and then compiling repa-examples with that, and the generated executable says (when called with +RTS -N2):  Most RTS options are disabled. Link with -rtsopts to enable them. Where?

[Haskell-cafe] autocomplete using hoogle

2010-09-05 Thread Yuras Shumovich
Hello, Just want to share some results of my weekend hacking. It is clear that haskell type checker can help to build a list of suggestions for autocomplete (very old idea). I tried to create a very basic prototype to play with the idea. The approach I used: The task can be divided into the

Re: [Haskell-cafe] ANNOUNCE: Haddock version 2.8.0

2010-09-02 Thread Yuras Shumovich
2010/9/2 Mark Lentczner ma...@glyphic.com: On Sep 2, 2010, at 5:00 AM, David Waern wrote: If you'd like to see the new look in action, I've generated some pages for a few packages here:        http://www.ozonehouse.com/mark/snap-xhtml/ Is it possible to switch back from frame version to non

Re: [Haskell-cafe] Slightly humorous: Headhunters toolbox (example for Germany)

2010-08-27 Thread Yuras Shumovich
2010/8/27 sylvain sylvain.na...@googlemail.com: Hi, the results given by the same research at the world level is worrisome: the interest in Haskell is steadily declining since 2004. Why was Haskell not successful conquering the hearts? Is it doomed to fail or is there still a chance?

Re: [Haskell-cafe] Is there a pure Haskell gzip/bzip compression module out there?

2010-08-12 Thread Yuras Shumovich
2010/8/12 Max Bolingbroke batterseapo...@hotmail.com: On 12 August 2010 12:10, C K Kashyap ckkash...@gmail.com wrote: http://hackage.haskell.org/packages/archive/zlib/0.4.0.2/doc/html/Codec-Compression-GZip.html It is not pure haskell implementation. As I know there are no pure implementation.

Re: [Haskell-cafe] subversion with haskell

2010-08-06 Thread Yuras Shumovich
Hi, Try the next: % env EXTRA_CPPFLAGS=-I/usr/local/include/subversion-1 \ EXTRA_LDFLAGS=-L/usr/local/lib \ runhaskell Setup.hs configure % runhaskell Setup.hs build % runhaskell Setup.hs install (and read the installation instructions included into the tarball :)

Re: [Haskell-cafe] subversion with haskell

2010-08-05 Thread Yuras Shumovich
Hi, As reported by the configure script, file svn_error.h is missing. It presence in latest svn api (http://subversion.apache.org/docs/api/latest/svn__error_8h.html) It can be installed in some unusual location, you can try find / -name svn_error.h If you are using debian based system, you can

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-10 Thread Yuras Shumovich
src/System/Plugins/Process.hs:59:4:     Warning: A do-notation statement discarded a result of type GHC.Conc.ThreadId.              Suppress this warning by saying _ - forkIO                                                      (()                                                        

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-10 Thread Yuras Shumovich
Another error : -- error start -- Preprocessing library plugins-1.4.1... Building plugins-1.4.1... [ 7 of 15] Compiling System.Plugins.Env ( src/System/Plugins/Env.hs, dist/build/System/Plugins/Env.o )

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-10 Thread Yuras Shumovich
I got another error: -- error start -- [ 8 of 15] Compiling System.MkTemp    ( src/System/MkTemp.hs, dist/build/System/MkTemp.o ) src/System/MkTemp.hs:214:26:    Couldn't match expected type `IOError'           against inferred type

Re: [Haskell-cafe] Occurs check error, help!

2010-03-20 Thread Yuras Shumovich
Hi, shuffle :: int - [a] - [a] shuffle i [cards] = ... So 'cards' is of type 'a' : cards :: a ... = (cards!!i) So 'cards' is a list of something: cards :: [b] ... = (cards!!i) + ... (+) :: b - b - b, the result of the 'shuffle' should be of type [a], so b :: [a], cards :: [[a]]

Re: [Haskell-cafe] Occurs check error, help!

2010-03-20 Thread Yuras Shumovich
2010/3/20 boblettoj bobletto...@msn.com: Ah yes, that makes sense now, however i have another problem, here is the updated code: --function used to shuffle cards --list equals random member of array plus the rest of the array --i is randomly generated from range of length equal to that of

Re: [Haskell-cafe] Binaries using shared libraries with cabal-install

2010-03-15 Thread Yuras Shumovich
Hi, As I know it doesn't work for executables, see http://hackage.haskell.org/trac/hackage/ticket/600 2010/3/15 Mathijs Kwik bluescreen...@gmail.com: Hi all, I'm using cabal-install 0.8.0 on ghc 6.12.1 on linux I switched on shared library support on cabal. Does this enable -dynamic and

Re: [Haskell-cafe] grapefruit on windows or osX

2010-02-21 Thread Yuras Shumovich
If you are using binary gtk2hs installer for windows, then you have to install the same ghc version the installer was built for. As I know there are no gtk2hs build for ghc-6.10.4. You can build it manually (using msys), but it is complicated task. 2010/2/21 gladst...@gladstein.com: I'm unable

Re: [Haskell-cafe] How to find unused exported symbols?

2010-02-15 Thread Yuras Shumovich
Hmm... It looks like a useful tool to implement. (Of course it does not make sense for libraries, only for executables) It can be easily implemented using haskell-src-exts package. 2010/2/15 John D. Ramsdell ramsde...@gmail.com: I would like to find symbols exported from each module in a program

Re: [Haskell-cafe] running HGL on OSX

2010-02-14 Thread Yuras Shumovich
Loading package X11-1.5.0.0 ... can't load .so/.DLL for: X11 (dlopen(libX11.dylib, 9): image not found) try DYLD_LIBRARY_PATH=/usr/X11R6/lib ghci graphics.hs http://hackage.haskell.org/trac/ghc/ticket/1019 ___ Haskell-Cafe mailing list

[Haskell-cafe] hsWidgets: yet another GUI library

2010-02-13 Thread Yuras Shumovich
Hello First of all, sorry my pure english... My aim was to prove that haskell GUI library can be: - pure: does not use any kind of mutable variables - statically typed: does not use existential types, Data.Dynamic, etc. - easy to use: simple things should be simple - easy to extend: