Re: [Haskell-cafe] Dual-licensing the package on Hackage

2013-07-30 Thread Krzysztof Skrzętnicki
Perhaps it would be best if .cabal allowed to have more than one license listed. Another solution would be to use custom field, for example: License: GPL x-Other-License: Commercial, see License-Commercial.txt All best, Krzysztof Skrzętnicki On Tue, Jul 30, 2013 at 11:44 AM, David Sorokin

Re: [Haskell-cafe] Performance difference between Linux and Windows?

2013-05-31 Thread Krzysztof Skrzętnicki
didn't have a look at the code so this is just a wild guess. Best regards, Krzysztof Skrzętnicki On Fri, May 31, 2013 at 3:26 PM, James Jones wrote: > I've been having a great deal of fun writing a program to solve this > year's Code Jam "Fair and Square"problem

Re: [Haskell-cafe] using a win32 dll

2013-05-29 Thread Krzysztof Skrzętnicki
My first guess would be missing -l parameter. The examples you have linked read: ghc --make compname.hs -lkernel32 Best regards, Krzysztof Skrzętnicki On Wed, May 29, 2013 at 9:13 AM, Kees Bleijenberg < k.bleijenb...@lijbrandt.nl> wrote: > I made a Delphi dll (32 bits windows).

[Haskell-cafe] Reinventing a solution to configuration problem

2013-05-09 Thread Krzysztof Skrzętnicki
lem is to use implicit parameters and type synonym for IO monad extended with implicit configuration parameters. It requires Rank2Types for defining the synonym and NoMonomorphismRestriction for lightweight use. Best regards, Krzysztof Skrzętnicki [1] I only realised this after starting the writ

Re: [Haskell-cafe] ghc-7 -fPIC error

2013-04-30 Thread Krzysztof Skrzętnicki
# GhcLibWays += p # GhcLibWays += dyn NoFibWays = STRIP_CMD = : Also cc-ing Chris Dornan of justhub.org. Best regards, Krzysztof Skrzętnicki On Tue, Apr 30, 2013 at 4:05 AM, Christopher Howard wrote: > Hey guys, this probably isn't the official GHC mailing list,

Re: [Haskell-cafe] how do i get cabal to reinstall dependencies with profiling enabled?

2013-04-17 Thread Krzysztof Skrzętnicki
Another option: use cabal-dev with --enable-library-profiling. It should do the trick. Best regards, Krzysztof Skrzętnicki On Wed, Apr 17, 2013 at 11:13 PM, Anatoly Yakovenko wrote: > > > ___ > Haskell-Cafe mailing list > Haskell-C

Re: [Haskell-cafe] Error when building executable with profiling enabled

2013-04-05 Thread Krzysztof Skrzętnicki
necessary flags and double-compilation process itself. Best regards, Krzysztof Skrzętnicki On Fri, Apr 5, 2013 at 4:41 PM, Nikolaos Bezirgiannis wrote: > > Hello, > > i have an executable where i want to run profiling on. > > I do: > > ghc --make -prof -auto-all -fth Custom.hs &

Re: [Haskell-cafe] GSoC Project Proposal: Markdown support for Haddock

2013-04-04 Thread Krzysztof Skrzętnicki
bonus points:* let the plugin be simply the name of a function (or datatype that implements a typeclass) which in turn would be taken from a well-defined scope. (think: library that can provide its own plugin for documenting itself). Best regards, Krzysztof Skrzętnicki On Fri, Apr 5, 2013 at 4

Re: [Haskell-cafe] Compiled code

2013-03-23 Thread Krzysztof Skrzętnicki
They are used: any library installed with e.g. cabal-install is kept around not in source form but with .hi and .o files (and perhaps some metadata as well.) Best regards, Krzysztof Skrzętnicki On Fri, Mar 22, 2013 at 11:04 PM, MigMit wrote: > Suppose I compiled some module and kept it&#x

Re: [Haskell-cafe] How to return a network connection to C

2013-02-28 Thread Krzysztof Skrzętnicki
If I understand you correctly you need a StablePtr to your Connection value. Please see: http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.6.0.1/Foreign-StablePtr.html Best regards, Krzysztof Skrzętnicki On Thu, Feb 28, 2013 at 6:31 PM, C K Kashyap wrote: > I am using h

Re: [Haskell-cafe] FunPtr to C function with #arguments determined at runtime?

2013-02-17 Thread Krzysztof Skrzętnicki
Hi, I think libffi might be the answer here. Please see Hackage and Haskell wiki for details. Cheers, Krzysztof Skrzetnicki 17-02-2013 12:18, "Ryan Newton" napisał(a): > Hello cafe, > > I've been poking around and I haven't seen this addressed anywhere except > obliquely in the end of section 8

Re: [Haskell-cafe] ifdef based on which OS you're on

2013-02-15 Thread Krzysztof Skrzętnicki
Well, for sure you can in define that in .cabal file: if !os(windows) CC-Options: "-DWINDOWS" or something. See: http://www.haskell.org/cabal/users-guide/developing-packages.html#configurations On Fri, Feb 15, 2013 at 3:05 PM, Andrew Cowie < and...@operationaldynamics.com> wrote: >

Re: [Haskell-cafe] Teaching haskell and fuzzy logic to high school students

2013-01-31 Thread Krzysztof Skrzętnicki
You can get the paper here for free: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.40.1464 On Thu, Jan 31, 2013 at 12:02 PM, claudio wrote: > I'm an Italian IT teacher and I would like to introduce functional > programming using haskell. > > As classroom activity, I would like to bui

Re: [Haskell-cafe] ANN: wizards-1.0: A High level, generic library for interrogative user interfaces

2012-07-01 Thread Krzysztof Skrzętnicki
Hello, This library looks very nice. Thank you for realeasing it! I realise it took quite an effort to write it. Looking from examples on Github I noticed that you use -XOverlappingInstances. Why do you need such extension? Best regards, Krzysztof Skrzętnicki On Sun, Jul 1, 2012 at 10:17 AM

Re: [Haskell-cafe] Data.Bitmap, readBitmap exception

2012-06-28 Thread Krzysztof Skrzętnicki
That bitmap must be pretty weird. 'file' command reports 'data', so headers must be off. Image viewer OTOH does handle the file. Best regards, Krzysztof Skrzętnicki On Thu, Jun 28, 2012 at 2:03 PM, Brandon Allbery wrote: > On Thu, Jun 28, 2012 at 7:34 AM, Alexander Fo

Re: [Haskell-cafe] Hackage 2 maintainership

2012-06-19 Thread Krzysztof Skrzętnicki
Hi, Are there any news how things are going? What remains there to be done to get us to Hackage 2? I found this list of tickets: https://github.com/haskell/cabal/issues?labels=hackage2&page=1&state=open Is there anything more to be done? Best regards, Krzysztof Skrzętnicki On Tue

Re: [Haskell-cafe] [Haskell] JustHub 'Sherkin' Release

2012-06-15 Thread Krzysztof Skrzętnicki
ementation details just because you wanted to install a new package. I'm not trying to spread FUD: only telling my not-so-success story with Nix. I'm sure Nix/NixOS has some potential but clearly it's not there yet for some reason. Best regards, Krzysztof Skrzętnicki On Fri, Jun 1

Re: [Haskell-cafe] Data.Bitmap question

2012-06-07 Thread Krzysztof Skrzętnicki
http://hackage.haskell.org/package/JuicyPixels). Best regards, Krzysztof Skrzętnicki On Thu, Jun 7, 2012 at 2:59 PM, Anders Lyckegaard < anders.lyckega...@gmail.com> wrote: > Hi, > > I have a short question on using Data.Bitmap. > > I have imported an image using STB-image. >

Re: [Haskell-cafe] Google Summer of Code - Lock-free data

2012-03-30 Thread Krzysztof Skrzętnicki
h, it is bounded and scales well with the number of producer/consumers threads. In the presence of multiple consumers/producers it's not a FIFO queue though, but rather a kind of buffer with funny ordering. Best regards, Krzysztof Skrzętnicki On Fri, Mar 30, 2012 at 00:03, John Lato wrote:

Re: [Haskell-cafe] Increase GHC stack size?

2012-02-05 Thread Krzysztof Skrzętnicki
/haskellwiki/Stack_overflow Best regards, Krzysztof Skrzętnicki On Sun, Feb 5, 2012 at 20:50, Michael Rice wrote: > I'm using > ghc --make... > > -rtsopts seems to be a link directive. > > The GHC docs seem to be project oriented. What's the two step process to > com

Re: [Haskell-cafe] Serialize instance for System.Posix.Files.FileStatus

2012-02-01 Thread Krzysztof Skrzętnicki
t on the system on which you are going to deserialize the value the CStat structure has the same memory layout. So you have to use proper serialization on Haskell side to achieve correctness. Best regards, Krzysztof Skrzętnicki On Wed, Feb 1, 2012 at 15:02, Johan Brinch wrote: > Are there pla

Re: [Haskell-cafe] Efficient temporary file storage??

2012-01-23 Thread Krzysztof Skrzętnicki
s indeed very fast, but simply less convenient). Best regards, Krzysztof Skrzętnicki On Tue, Jan 24, 2012 at 00:37, Nick Rudnick wrote: > Dear all, > > if you want to temporarily store haskell data in a file – do you have a > special way to get it done efficiently? > > In an off

Re: [Haskell-cafe] Poll: Do you want a mascot? -- please stop this

2011-11-23 Thread Krzysztof Skrzętnicki
, Krzysztof Skrzętnicki On Wed, Nov 23, 2011 at 21:25, Giovanni Tirloni wrote: > On Wed, Nov 23, 2011 at 5:52 PM, heathmatlock wrote: > >> On Wed, Nov 23, 2011 at 1:40 PM, Alexander Bernauer < >> alex-hask...@copton.net> wrote: >> >>> Yes >>> >>>

Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-13 Thread Krzysztof Skrzętnicki
You can also download binary tarball, untar, ./configure --prefix=$HOME/ghc-7.0.2, make install, export PATH=$PATH:$HOME/ghc-7.0.2 and you will be good to go. Best regards, Krzysztof Skrzętnicki On Mon, Mar 14, 2011 at 02:15, Ertugrul Soeylemez wrote: > I know, but at least I can go on w

Re: [Haskell-cafe] Possible bug in Control.Concurrent

2011-02-09 Thread Krzysztof Skrzętnicki
is a normal Arch Linux setup with GHC installed via pacman. Best regards, Krzysztof Skrzętnicki 2011/2/9 Krzysztof Skrzętnicki > Hello Cafe, > > Here is a simple program that yields strange results: > > module Main where > > import Control.Concurrent > import Control.

[Haskell-cafe] Possible bug in Control.Concurrent

2011-02-09 Thread Krzysztof Skrzętnicki
ehave. Invariably of -threaded flag it will go like this: ./deadlock ("forkio",1) deadlock: thread blocked indefinitely in an MVar operation I have no idea what is the problem here. Perhaps I'm not using the library in the right way.

Re: [Haskell-cafe] Review request for "platform independent interactive graphics" with VNC

2011-02-03 Thread Krzysztof Skrzętnicki
One thing to notice: $ cabal install network-server is needed. Best regards, Krzysztof Skrzętnicki On Thu, Feb 3, 2011 at 12:15, C K Kashyap wrote: > Hi, > I've been working on a Haskell based platform independent graphics > rendering > using VNC. I'd like it very mu

Re: [Haskell-cafe] Packages all screwed up

2011-02-01 Thread Krzysztof Skrzętnicki
AFAIK GHC on Windows comes with it's own mingw, but I'm not sure if the toolchain is complete. But I wouldn't try to reinstall core packages anyway. They are best picked from installation package. Best regards, Krzysztof Skrzętnicki 2011/2/1 Arnaud Bailly > I started that w

Re: [Haskell-cafe] Packages all screwed up

2011-02-01 Thread Krzysztof Skrzętnicki
. Best regards, Krzysztof Skrzętnicki On Tue, Feb 1, 2011 at 08:16, Arnaud Bailly wrote: > Hi, > Thanks for your answers. > > I did > > > cabal upgrade yesod > > As for the user/global issue, I think I tried a user install, this is > default isn't it? > > Looks

Re: [Haskell-cafe] Behaviour of System.Directory.getModificationTime

2010-12-16 Thread Krzysztof Skrzętnicki
y fragile and I probably not very efficient as well. Best regards, Krzysztof Skrzętnicki On Thu, Dec 16, 2010 at 17:50, Arnaud Bailly wrote: > actually, IRL the code works as expected. Might it be possible that > the speed of test execution is greater than the granularity of the > system&

[Haskell-cafe] ANN: mute-unmute-0.2.0.0

2010-08-27 Thread Krzysztof Skrzętnicki
uration --store-unmute ask for unmute configuration -d --daemonwait for screensaver state changes -h, -? --help show help There isn't much more I can say. I hope you find the program at least educational (as a simple example of DBus usage) if not useful. Best regards, Krzysztof Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Installing "encoding" package from Hackage

2010-01-24 Thread Krzysztof Skrzętnicki
xtensible-exceptions, template-haskell 3. Instal with "cabal install" run in the directory next to encoding.cabal. It looks like package maintainer forgot to specify this dependency. Best regards Krzysztof Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: readline-statevar-1.0.1.0

2009-12-05 Thread Krzysztof Skrzętnicki
[1], along with issue tracker [2] and Hackage page [3]. Feel encouraged to: > cabal update > cabal install readline-statevar And give it a try! Best regards Krzysztof Skrzętnicki [1] http://github.com/Tener/haskell-readline-statevar/ [2] http://github.com/Tener/haskell-readline-statevar

[Haskell-cafe] ANN: package-vt-0.1.3.3, Haskell Package Versioning Tool

2009-11-26 Thread Krzysztof Skrzętnicki
(s) removed/renamed. --- "Data/Number/ER/RnToRm/UnitDom/ChebyshevBase/Polynom/Field" --- ExitSuccess --cut-- In case of any trouble please email me or report an issue here [3]. In the near future I'll post more specific plans about development on my blog [4]. I hope you will

Re: [Haskell-cafe] Installing documentation with cabal

2009-08-18 Thread Krzysztof Skrzętnicki
It is. From command line: cabal install package --enable-documentation or add line "documentation: True" to .cabal/config or equivalent. Best regards Krzysztof Skrzętnicki On Tue, Aug 18, 2009 at 22:29, Maciej Piechotka wrote: > Is it possible to automatically (or non-automatic

Re: [Haskell-cafe] How to know the build dependencies?

2009-06-14 Thread Krzysztof Skrzętnicki
m, integer] It is, however, available only after your code has successfully compiled. Best regards Krzysztof Skrzętnicki On Sun, Jun 14, 2009 at 04:22, Magicloud Magiclouds wrote: > Hi, >  I am learning to use cabal for my code. >  Just when I start, I met a question, is there an easy way

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: OpenGLRaw 1.0.0.0

2009-06-11 Thread Krzysztof Skrzętnicki
string: 3.0.0 NVIDIA 180.51 OpenGL shading language version string: 1.30 NVIDIA via Cg compiler So it doesn't appear to be true. Best regards Krzysztof Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Convert IO Int to Int

2009-06-09 Thread Krzysztof Skrzętnicki
> > The dice function uses replicate and sequence to simulate the roll of n dice. > > dice :: (RandomGen g) => Int -> Rand g [Int] > dice n = sequence (replicate n die) > > To extract a value from the Rand monad, we can can use evalRandIO. > > main = do > values <- evalRandIO (dice 2) > putStrLn (show values) Best regards Krzysztof Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Incremental XML parsing with namespaces?

2009-06-09 Thread Krzysztof Skrzętnicki
p://www.w3.org/1999/xhtml";, nnLocalPart = "body"}, eAttrs = [], eChildren = [Text "Hello world!"]}]},Text "\n"]} # we mess with doc1.xml and exchange for $ ./hexpat-test Error! XMLParseError "mismatched tag" (XMLParseLocation {xmlLineNumber = 5, xmlColumnNum

Re: [Haskell-cafe] Incremental XML parsing with namespaces?

2009-06-09 Thread Krzysztof Skrzętnicki
= [], eChildren = [Text "abc1234"]},Text "\n",Text " ",Element {eName = NName {nnNamespace = Just "http://www.w3.org/1999/xhtml";, nnLocalPart = "html"}, eAttrs = [(NName {nnNamespace = Just "http://www.w3.org/1999/xhtml";, nnLocalPart = "xmlns"},"http://www.w3.org/1999/xhtml";)], eChildren = [Element {eName = NName {nnNamespace = Just "http://www.w3.org/1999/xhtml";, nnLocalPart = "body"}, eAttrs = [], eChildren = [Text "Hello world!"]}]},Text "\n"]} Best regards Krzysztof Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Random Number

2009-06-07 Thread Krzysztof Skrzętnicki
30. I don't mean to be rude, but did you even tried to read the documentation? The function you want is here: http://www.haskell.org/ghc/docs/latest/html/libraries/random/System-Random.html Before you ask any other questions please read this essay: http://mattgemmell.com/2008/12/08/what-h

Re: [Haskell-cafe] Stack overflow

2009-05-28 Thread Krzysztof Skrzętnicki
On Thu, May 28, 2009 at 14:41, Bertram Felgenhauer wrote: > Krzysztof Skrzętnicki wrote: >> 2009/5/27 Bertram Felgenhauer : >> > I wrote: >> >> Krzysztof Skrzętnicki wrote: >> >>> The code for modifying the counter: >> >>>

Re: [Haskell-cafe] Stack overflow

2009-05-27 Thread Krzysztof Skrzętnicki
2009/5/27 Bertram Felgenhauer : > I wrote: >> Krzysztof Skrzętnicki wrote: >>> The code for modifying the counter: >>> (\ msg -> atomicModifyIORef ioref (\ cnt -> (cntMsg cnt msg,( >> >> atomicModifyIORef does not force the new value of the IORef.

[Haskell-cafe] Stack overflow

2009-05-27 Thread Krzysztof Skrzętnicki
Hello Cafe I'm currently writing an app with heavy use of message passing. To see which messages takes most of the bandwidth I wrote the following code: -- data Counter = CNT !Int !Int !Int !Int cntMsg (CNT a b c d) (MoveOther _ _) = (CNT a+1 b c d) cntMsg (CNT a b c d) (MoveSelf _) = (CNT a b+1

Re: [Haskell-cafe] Example code won't compile

2009-05-15 Thread Krzysztof Skrzętnicki
The one important line is > import Control.Monad.Error It adds dependancy on mtl package, which is not used by default (contrary to 'base' package, which includes Monad, System and IO modules). With --make GHC adds it automatically. Therefore $ ghc -package mtl ex14.hs compiles fine. I'd recommend

Re: [Haskell-cafe] Vector-like data structure

2009-05-04 Thread Krzysztof Skrzętnicki
Thank both of you for your responses. Unfortunately I decided to switch to Python for this project, as I plan to use BerkeleyDB and Haskell bindings for it are poorly written. Best regards Christopher Skrzętnicki 2009/5/3 Don Stewart : > gtener: >> Hi >> >> I'm looking for a data structure with

[Haskell-cafe] Vector-like data structure

2009-05-03 Thread Krzysztof Skrzętnicki
Hi I'm looking for a data structure with following characteristics: 1. O(1) lookup 2. O(1) modification 3. amortized O(1) append 4. O(1) size query This roughly characterizes C++ vector<> class. I'm ready to implement it myself, but first I would like to ask if anyone knows package with similar d

Re: [Haskell-cafe] Array Binary IO & molecular simulation

2009-05-02 Thread Krzysztof Skrzętnicki
On Sat, May 2, 2009 at 11:12, Jason Dusek wrote: >  I believe Data.Binary includes a header with the data >  it serializes. In consequence, the second and all following >  arrays will be invisible. [Apologies for Jason for sending this twice to him] I didn't check the Binary instance for arrays,

Re: [Haskell-cafe] Memory usage of cabal install

2009-04-27 Thread Krzysztof Skrzętnicki
Jakiej platformy dokładnie dotyczy Twój problem? Proponuję upgrade do najnowszej wersji - można ją ściągnąć ze strony GHC. Pozdrawiam Krzysztof Skrzętnicki 2009/4/27 Krzysztof Kościuszkiewicz : > Hello Haskell-Café, > > I have a problem with high memory usage of cabal-install.  Wheneve

[Haskell-cafe] Re: Template Haskell + Profiling

2009-04-24 Thread Krzysztof Skrzętnicki
Krzysztof Skrzętnicki > Hi > > I'm trying to build some modules that use TH with profiling enabled. > > The normal build works: > > $ ghc -fforce-recomp --make -cpp -O -DXQUERY2_TEST Main > [1 of 8] Compiling Text.XML.Expat.FormatCustom ( > Text/XML/Expat

[Haskell-cafe] Template Haskell + Profiling

2009-04-24 Thread Krzysztof Skrzętnicki
Hi I'm trying to build some modules that use TH with profiling enabled. The normal build works: $ ghc -fforce-recomp --make -cpp -O -DXQUERY2_TEST Main [1 of 8] Compiling Text.XML.Expat.FormatCustom ( Text/XML/Expat/FormatCustom.hs, Text/XML/Expat/FormatCustom.o ) [2 of 8] Compiling DataStructur

Re: [Haskell-cafe] Binary I/O options

2009-04-24 Thread Krzysztof Skrzętnicki
There is already a network-bytestring package: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/network-bytestring Regards Christopher Skrzętnicki On Fri, Apr 24, 2009 at 16:20, David Leimbach wrote: > Sounds like the endorsement I was looking for :-) > > > On Fri, Apr 24, 2009 at 7

Re: [Haskell-cafe] Haskell Weekly News: Issue 111 - March 28, 2009

2009-03-28 Thread Krzysztof Skrzętnicki
This paper from 1994: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.36.5611 begins point 1.1 with exactly that sentence. It doesn't seem to be quoted there, so one can assume this is the original source of that sentence. I'm not sure dough. Regards Christopher Skrzętnicki 2009/3/28 Con

Re: [Haskell-cafe] Telnet handshaking

2009-02-15 Thread Krzysztof Skrzętnicki
On Sun, Feb 15, 2009 at 10:25, Martijn van Steenbergen wrote: > Are there any Haskell libraries out there that implement telnet? Bare > sockets are a good approximation, but I'm looking for a library that > understands the escape sequences specific to telnet. I think Yogurt http://hackage.haskell

Re: [Haskell-cafe] Re: Overloading functions based on arguments?

2009-02-13 Thread Krzysztof Skrzętnicki
On Fri, Feb 13, 2009 at 22:37, John A. De Goes wrote: > On Feb 13, 2009, at 2:11 PM, Jonathan Cast wrote: >> >> The compiler should fail when you tell it two mutually contradictory >> things, and only when you tell it two mutually contradictory things. > > By definition, it's not a contradiction w

Re: [Haskell-cafe] How to deal with utf-8?

2009-02-12 Thread Krzysztof Skrzętnicki
On Fri, Feb 13, 2009 at 08:06, Magicloud wrote: > Hi, > I am using Text.CSV to read and using gtk2hs to display csv files using > utf-8 encode. Well, it displays broken strings, seems like it cannot deal > with utf-8. > What should I do? You should try using functions from utf8-string package

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-12 Thread Krzysztof Skrzętnicki
On Thu, Feb 12, 2009 at 11:36, Malcolm Wallace wrote: > Gwern Branwen wrote: > >> * A GUI interface to Darcs >> (http://hackage.haskell.org/trac/summer-of-code/ticket/17); > > I wonder whether darcs ought to apply to be a GSoC mentoring > organisation in its own right this year?  It would be good

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Krzysztof Skrzętnicki
On Wed, Feb 11, 2009 at 21:00, Jamie wrote: > Hi Gwern, > > On Wed, 11 Feb 2009, Gwern Branwen wrote: > >>> I just checked H.263 and it looks like it does not require patent >>> licensing >>> at all (it is created by ITU-T Video Coding Experts Group (VCEG)) so one >>> can >>> write H.263 in Haskel

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Krzysztof Skrzętnicki
2009/2/11 Gwern Branwen : > touch tools/c2hs/c2hsLocal.deps; /home/gwern/bin/bin/ghc -M -dep-makefile > -optdeptools/c2hs/c2hsLocal.deps -fglasgow-exts -O > > -itools/c2hs/base/admin:tools/c2hs/base/errors:tools/c2hs/base/general:tools/c2hs/base/state:tools/c2hs/base/syms:tools/c2hs/base/syntax:

Re: [Haskell-cafe] type metaphysics

2009-02-02 Thread Krzysztof Skrzętnicki
Do they? Haskell is a programing language. Therefore legal Haskell types has to be represented by some string. And there are countably many strings (of which only a subset is legal type representation, but that's not important). All best Christopher Skrzętnicki On Mon, Feb 2, 2009 at 17:09, Gregg

Re: [Haskell-cafe] GHC 6.11 missing time package?

2009-02-01 Thread Krzysztof Skrzętnicki
It looks that you need MSYS or Cygwin to complete this build. Here you can find instructions regarding MSYS (and also GLUT, but you can ignore that part): http://www.haskell.org/pipermail/haskell-cafe/2007-September/031535.html All best Christopher Skrzętnicki 2009/2/1 Lyle Kopnicky > I tried

Re: [Haskell-cafe] can't build testpack

2009-01-31 Thread Krzysztof Skrzętnicki
s this problem, they can find this and solve it on their own. also, > if someone else can figure it out before i do, that's cool too. > > thanks for your help so far! > > > On Sat, Jan 31, 2009 at 8:14 PM, Krzysztof Skrzętnicki > wrote: > >> Ok, sorry for the con

Re: [Haskell-cafe] can't build testpack

2009-01-31 Thread Krzysztof Skrzętnicki
;cabal configure && cabal build" fails, whereas "cabal install" builds fine. Looks like a bug in cabal-install. Am I right? All best Christopher Skrzętnicki On Sun, Feb 1, 2009 at 03:01, Krzysztof Skrzętnicki wrote: > testpack builds fine for me. In the original .cab

Re: [Haskell-cafe] can't build testpack

2009-01-31 Thread Krzysztof Skrzętnicki
quot;cabal install" and "runhaskell Setup build". All best Christopher Skrzętnicki 2009/2/1 Ezekiel Smithburg > oddly, when i do that, i'm back to the original error message. and sorry, > i didn't understand what you meant, apparently. > > > O

Re: [Haskell-cafe] can't build testpack

2009-01-31 Thread Krzysztof Skrzętnicki
2009/2/1 Ezekiel Smithburg > solution to that problem: > > deleted the lines from "If flag(splitBase)" on and changed base in > Build-Depends to base >= 4. > Well, this is exactly what I suggested in the first place: > This error is due to usage of old base package in version 3.> In .cabal file

Re: [Haskell-cafe] can't build testpack

2009-01-31 Thread Krzysztof Skrzętnicki
This error is due to usage of old base package in version 3.In .cabal file add dependency on base-4, in form "base >= 4". All best Christopher Skrzętnicki 2009/2/1 Ezekiel Smithburg > this is the error message i get: > > ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.* build > Preprocessin

Re: [Haskell-cafe] ANN: HDBC v2.0 now available

2009-01-31 Thread Krzysztof Skrzętnicki
On Sat, Jan 31, 2009 at 04:01, John Goerzen wrote: > On Sat, Jan 31, 2009 at 01:51:54AM +0100, Krzysztof Skrz??tnicki wrote: > > The following change in .cabal file may solve the problems:--- > > flag base4 > > description: Choose base-4 if possible > > default: True > > > > library > > if

Re: [Haskell-cafe] ANN: HDBC v2.0 now available

2009-01-30 Thread Krzysztof Skrzętnicki
The following change in .cabal file may solve the problems:--- flag base4 description: Choose base-4 if possible default: True library if flag(splitBase) if flag(base4) Build-Depends: base>=4, old-time, time, bytestring, containers, old-locale else Build-Depends: base>=3,

Re: [Haskell-cafe] ANN: HDBC v2.0 now available

2009-01-30 Thread Krzysztof Skrzętnicki
On Sat, Jan 31, 2009 at 00:45, Krzysztof Skrzętnicki wrote: > On Sat, Jan 31, 2009 at 00:07, Valentyn Kamyshenko wrote: > >> Hello John, >> >> I'm trying to install the new version of HDBC on my Mac (ghc version is >> 6.10.1), and get the following er

Re: [Haskell-cafe] ANN: HDBC v2.0 now available

2009-01-30 Thread Krzysztof Skrzętnicki
On Sat, Jan 31, 2009 at 00:07, Valentyn Kamyshenko wrote: > Hello John, > > I'm trying to install the new version of HDBC on my Mac (ghc version is > 6.10.1), and get the following error: > > # cabal upgrade --global > Resolving dependencies... > 'HDBC-2.0.0' is cached. > Configuring HDBC-2.0.0...

Re: [Haskell-cafe] how to implement daemon start and stop directives?

2009-01-25 Thread Krzysztof Skrzętnicki
When you succeed please write about it - I'd love to read about it!I was interested in writing a deamon in the past but didn't have time for it and a nice tutorial would probably help a lot. All best Christopher Skrzętnicki On Sun, Jan 25, 2009 at 02:57, Belka wrote: > > >If you want a normal

Re: [Haskell-cafe] Employment

2009-01-23 Thread Krzysztof Skrzętnicki
There are quite a few people with working Haskell knowledge in Wroclaw. I'm sure many of my colleagues (from University of Wroclaw: http://www.ii.uni.wroc.pl/ ) know Haskell and I think would enjoy working with it. All best Christopher Skrzętnicki On Fri, Jan 23,

Re: [Haskell-cafe] Re: Does readFile "/proc/mounts" hang for you?

2009-01-21 Thread Krzysztof Skrzętnicki
Same for me: Linux tenserwer 2.6.28-ARCH #1 SMP PREEMPT Tue Jan 6 10:26:22 UTC 2009 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux The Glorious Glasgow Haskell Compilation System, version 6.10.1 All best Christopher Skrzętnicki On Wed, Jan 21, 2009 at 23:27, Ertugrul Soeylemez wr

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-13 Thread Krzysztof Skrzętnicki
My experience from using GHC under Windows XP is very similar. Many packages (especially those involving bindings to C packages) are at least painful to build. Regarding encoding package: it compiles fine for me: C:\Documents and Settings\Metharius>cabal install encoding Resolving dependencies...

Re: [Haskell-cafe] Data.List.sort, not so good?

2008-12-29 Thread Krzysztof Skrzętnicki
I think you are repeating my steps :-) On sorted data (like [1..n]) quicksort is O(n^2). Please read this thread: http://www.nabble.com/(flawed-)-benchmark-:-sort-td15817832.html All best Christopher Skrzętnicki 2008/12/29 Adrian Neumann : > Ah that's interesting. Now my Mergesort is exactly a

Re: [Haskell-cafe] implementing python-style dictionary in Haskell

2008-11-18 Thread Krzysztof Skrzętnicki
2008/11/18 kenny lu <[EMAIL PROTECTED]>: > Dear all, > > I am trying to implement the python-style dictionary in Haskell. > > Python dictionary is a data structure that maps one key to one value. > For instance, a python dictionary > d = {'a':1, 'b':2 } > maps key 'a' to 1, 'b' to 2. > Python dicti

Re: [Haskell-cafe] catting to cat gets stuck at > 135K

2008-11-10 Thread Krzysztof Skrzętnicki
> > Yep, that's your problem. forkIO the hPut. > I can see the that thing biting a lot of people. Maybe there should be a warning in docs that this particular combination: > feed input > read output > waitForProcess is just likely to produce deadlocks? All best Christopher S

Re: [Haskell-cafe] Password hashing

2008-10-28 Thread Krzysztof Skrzętnicki
On Tue, Oct 28, 2008 at 16:42, Bit Connor <[EMAIL PROTECTED]> wrote: > Hello, > > What library can be used to securely hash passwords? From what I > understand, the "bcrypt" algorithm is what the experts recommend. It > is described in the paper: > > http://www.openbsd.org/papers/bcrypt-paper.ps >

Re: [Haskell-cafe] ANNOUNCE: Glob 0.1, globbing library

2008-10-18 Thread Krzysztof Skrzętnicki
On Sat, Oct 18, 2008 at 19:28, Matti Niemenmaa <[EMAIL PROTECTED]> wrote: > Gah, I fail at posting to mailing lists. For posterity, the message I sent to > Krzysztof: > > Krzysztof Skrzętnicki wrote: >> On Fri, Oct 17, 2008 at 22:02, Matti Niemenmaa <[EMAIL PROTECTED]

Re: [Haskell-cafe] ANNOUNCE: Glob 0.1, globbing library

2008-10-18 Thread Krzysztof Skrzętnicki
On Fri, Oct 17, 2008 at 22:02, Matti Niemenmaa <[EMAIL PROTECTED]> wrote: > Greetings to all, > > I hereby announce the release of Glob 0.1, a small library for glob-matching > purposes based on a subset of zsh's syntax. > > Web page at: http://iki.fi/matti.niemenmaa/glob/index.html > Hackage: http

Re: [Haskell-cafe] I'll do USB in Haskell - tips?

2008-10-06 Thread Krzysztof Skrzętnicki
On Tue, Oct 7, 2008 at 01:55, Mauricio <[EMAIL PROTECTED]> wrote: > Hi, > > I'll need to use a lot of USB at work and, after > looking around, it seems there's no general USB > code done. 'libusb' and 'openusb' do not seem > ready enough so that wrapping them would be easier > than writing from scr

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Krzysztof Skrzętnicki
On Thu, Oct 2, 2008 at 00:00, Svein Ove Aas <[EMAIL PROTECTED]> wrote: > That aside, why not start downloading in the background, while it's > doing whatever you started cabal for? Assuming the network is working, > you should have an updated package list by the time it's done; > granted, it won't

Re: [Haskell-cafe] not able to compile Happy GLR examples

2008-09-29 Thread Krzysztof Skrzętnicki
> with Happy, version 1.16. I'm using ghc version 6.6.1. I've looked at the Just looking at the GHC version number: perhaps update to 6.8.3 would help? Best regards Christopher Skrzętnicki ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

Re: [Haskell-cafe] Where is OpenGL loadMatrix ?

2008-09-25 Thread Krzysztof Skrzętnicki
On Thu, Sep 25, 2008 at 15:39, minh thu <[EMAIL PROTECTED]> wrote: > > Hi, > > I can't find the loadMatrix function in > http://hackage.haskell.org/packages/archive/OpenGL/latest/doc/html/Graphics-Rendering-OpenGL-GL-CoordTrans.html > > Should I use loadIdentity then multMatrix instead ? > > Thank

Re: [Haskell-cafe] Haskell Propeganda

2008-08-23 Thread Krzysztof Skrzętnicki
You can get nice exception (but not segfault) when trying to fire this code: > {-# OPTIONS_GHC -XRecursiveDo #-} > > module Main where > > import Control.Concurrent > import Control.Monad.Fix > > loopChan :: IO (Chan ()) > loopChan = mdo chan <- dupChan chan > return chan > > main = do > c <- loop

Re: [Haskell-cafe] Haskell Speed Myth

2008-08-23 Thread Krzysztof Skrzętnicki
Recently I wrote computation intensive program that could easily utilize both cores. However, there was overhead just from compiling with -threaded and making some forkIO's. Still, the overhead was not larger than 50% and with 4 cores I would probably still get the results faster - I didn't experie

Re: [Haskell-cafe] Re: USB and serial port

2008-08-08 Thread Krzysztof Skrzętnicki
Which version do you consider "new": the current 0.1.12 or the future 1.0 version? Regards, Christopher Skrzętnicki On Fri, Aug 8, 2008 at 14:54, Maurí­cio <[EMAIL PROTECTED]> wrote: > Interesting! The new version of the library > really deserves a wrapper. > > Thanks, > Maurício > >> I'm current

Re: [Haskell-cafe] USB and serial port

2008-08-07 Thread Krzysztof Skrzętnicki
I'm currently using partial wrapper around libusb[1] in my work. It doesn't provide full interface to the library itself, so I didn't have to translate C structures. Perhaps someone can make a regular wrapper - the libusb API is pretty small and concise. Regards, Christopher Skrzętnicki [1] http:

Re: [Haskell-cafe] Exceptions

2008-07-27 Thread Krzysztof Skrzętnicki
I don't really think this is possible: consider asynchronous exceptions and throwTo. http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#v%3AthrowTo Since it can throw just *any* exception into thread. And this thread might not be aware that anyone can throw him anyt

Re: [Haskell-cafe] Libevent FFI problems

2008-07-25 Thread Krzysztof Skrzętnicki
2008/7/25 Levi Greenspan <[EMAIL PROTECTED]>: > And to not require a permanent thread for each I would > like to use something like select in C or Selector in Java. I haven't > found something like this in Haskell, hence the libevent wrapper. As far as I know GHC's scheduler uses select() internall

Re: Re[2]: [Haskell-cafe] ansi2html - one program, several issues

2008-07-20 Thread Krzysztof Skrzętnicki
I played with another approach without any parser library, just with plain pattern matching. The idea was to create function to match all different cases of codes. Since I already got most of the code, it was quite easy to do. The core function consist of cases like those: > parse ('\ESC':'['

Re: Re[2]: [Haskell-cafe] ansi2html - one program, several issues

2008-07-20 Thread Krzysztof Skrzętnicki
On Sun, Jul 20, 2008 at 7:25 AM, Chaddaï Fouché <[EMAIL PROTECTED]> wrote: > > > That's exactly what I thought. But even if I remove the only 'try' I use > the > > memory consumption remains unchanged: > > It's true, but in your case your output is almost the raw input data, > which means that eve

Re: Re[2]: [Haskell-cafe] ansi2html - one program, several issues

2008-07-19 Thread Krzysztof Skrzętnicki
On Sun, Jul 20, 2008 at 12:34 AM, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: > Hello Krzysztof, > > Sunday, July 20, 2008, 1:55:45 AM, you wrote: > >>> 532 MB total memory in use (4 MB lost due to fragmentation). > > i think that Parsec library should hold entire file in memory only when > you use

Re: [Haskell-cafe] ansi2html - one program, several issues

2008-07-19 Thread Krzysztof Skrzętnicki
On Sat, Jul 19, 2008 at 11:35 PM, Chaddaï Fouché <[EMAIL PROTECTED]> wrote: > 2008/7/19 Krzysztof Skrzętnicki <[EMAIL PROTECTED]>: > > I forgot to mention that the memory consumption is several times higher > than > > file size. On 8,3 Mb file: > >> 532 M

Re: [Haskell-cafe] ansi2html - one program, several issues

2008-07-19 Thread Krzysztof Skrzętnicki
ore memory than file size and it scales linearly. Best regards Christopher Skrzętnicki On Sat, Jul 19, 2008 at 9:52 PM, Chaddaï Fouché <[EMAIL PROTECTED]> wrote: > 2008/7/19 Krzysztof Skrzętnicki <[EMAIL PROTECTED]>: > > Hi all > > > > 1) Profiling shows that very

Re: [Haskell-cafe] What's the difference?

2008-04-08 Thread Krzysztof Skrzętnicki
On Tue, Apr 8, 2008 at 11:05 PM, PR Stanley <[EMAIL PROTECTED]> wrote: > > > > > > > What is the difference between > > > > > >data T0 f a = MkT0 a > > >instance Eq (T0 f a) where ... > > > > > >and > > > > > >data T0 f a = MkT0 a > > >instance Eq a => Eq (T0 f a) where ...

Re: [Haskell-cafe] Re: Shouldn't this loop indefinitely => take (last [0..]) [0..]

2008-04-04 Thread Krzysztof Skrzętnicki
On Fri, Apr 4, 2008 at 7:14 PM, Jake Mcarthur <[EMAIL PROTECTED]> wrote: > On Apr 4, 2008, at 11:31 AM, Loup Vaillant wrote: > > > I mean, could we calculate this equality without reducing > > length ys to weak head normal form (and then to plain normal form)? > > > > Yes. Suppose equality over Na

Re: [Haskell-cafe] Type constraints for class instances

2008-03-23 Thread Krzysztof Skrzętnicki
s 2, but it is in fact _|_ > > > > We take forever to decide if [1..] is greater or less than [1..], so can > never decide if [1..] or [2..] comes next. > > > > However Ord a => YOrd [a] can be made to work, and that is absolutely > awesome, esp. once you start thin

Re: [Haskell-cafe] Type constraints for class instances

2008-03-21 Thread Krzysztof Skrzętnicki
It compiles, but it doesn't work when i try to use it on lists. There are some bugs in that code, but I need some time to fix it. 2008/3/21 Bas van Dijk <[EMAIL PROTECTED]>: > 2008/3/21 Krzysztof Skrzętnicki <[EMAIL PROTECTED]>: > > ... > > > I

[Haskell-cafe] YOrd and ysort

2008-03-20 Thread Krzysztof Skrzętnicki
The ysort function I've written for YOrd class was incredibly inefficient. Here is better one: ysort :: (YOrd a) => [a] -> [a] ysort = head . mergeAll . wrap wrap :: [a] -> [[a]] wrap xs = map (:[]) xs mergeAll :: (YOrd a) => [[a]] -> [[a]] mergeAll [] = [] mergeAll [x] = [x] mergeAll (a:b:res

  1   2   >