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 jejones3...@gmail.com wrote: I've been having a great deal of fun writing a program to solve this year's Code Jam Fair and Squareproblem in Haskell

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). This dll exports

[Haskell-cafe] Reinventing a solution to configuration problem

2013-05-09 Thread Krzysztof Skrzętnicki
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 writing of this email. The implicit parameters

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 christopher.how...@frigidcode.com wrote: Hey guys, this probably isn't the official

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

2013-04-18 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 aeyakove...@gmail.comwrote: ___ Haskell-Cafe mailing list Haskell-Cafe

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

2013-04-05 Thread Krzysztof Skrzętnicki
:* 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:24 AM, Richard

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

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

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 miguelim...@yandex.ru wrote: Suppose I compiled some

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 ckkash...@gmail.com wrote: I am

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 rrnew...@gmail.com napisał(a): Hello cafe, I've been poking around and I haven't seen this addressed anywhere except obliquely in the end

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 wbig...@gmail.com wrote: I'm an Italian IT teacher and I would like to introduce functional programming using haskell. As classroom activity, I

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 allber...@gmail.comwrote: On Thu, Jun 28, 2012 at 7:34 AM, Alexander Foremny

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=hackage2page=1state=open Is there anything more to be done? Best regards, Krzysztof Skrzętnicki On Tue, Feb 14, 2012

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

2012-06-15 Thread Krzysztof Skrzętnicki
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 15, 2012 at 9:10 PM, Peter

Re: [Haskell-cafe] Data.Bitmap question

2012-06-07 Thread Krzysztof Skrzętnicki
://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. img - loadImage filename Now I get img

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

2012-03-30 Thread Krzysztof Skrzętnicki
, 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 jwl...@gmail.com

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 limitc...@gmail.com 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 compile and link a simple

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

2012-02-01 Thread Krzysztof Skrzętnicki
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 brin...@gmail.com wrote: Are there plans

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

2012-01-23 Thread Krzysztof Skrzętnicki
fast, but simply less convenient). Best regards, Krzysztof Skrzętnicki On Tue, Jan 24, 2012 at 00:37, Nick Rudnick nick.rudn...@googlemail.comwrote: 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 offline

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 gtirl...@sysdroid.comwrote: On Wed, Nov 23, 2011 at 5:52 PM, heathmatlock heathmatl...@gmail.comwrote: On Wed, Nov 23, 2011 at 1:40 PM, Alexander Bernauer alex-hask...@copton.net wrote: Yes PS: Why not using Doodle

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 e...@ertes.de wrote: I know, but at least I can

[Haskell-cafe] Possible bug in Control.Concurrent

2011-02-09 Thread Krzysztof Skrzętnicki
: 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. Does anyone has any idea what's going on here? Best regards, Krzysztof Skrzętnicki ___ Haskell-Cafe mailing

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

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

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 ckkash...@gmail.com wrote: Hi, I've been working on a Haskell based platform independent graphics rendering using VNC. I'd like it very much if you

Re: [Haskell-cafe] Packages all screwed up

2011-02-01 Thread Krzysztof Skrzętnicki
, Krzysztof Skrzętnicki On Tue, Feb 1, 2011 at 08:16, Arnaud Bailly arnaud.oq...@gmail.com 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 like I will have to reinstall everything

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 arnaud.oq...@gmail.com I started

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

2010-12-16 Thread Krzysztof Skrzętnicki
not very efficient as well. Best regards, Krzysztof Skrzętnicki On Thu, Dec 16, 2010 at 17:50, Arnaud Bailly arnaud.oq...@gmail.com 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's

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

2010-08-27 Thread Krzysztof Skrzętnicki
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

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

2010-01-24 Thread Krzysztof Skrzętnicki
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
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/issues [3] http

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

2009-11-26 Thread Krzysztof Skrzętnicki
blog [4]. I hope you will find it useful. Best regards, Krzysztof Skrzętnicki [1] http://www.haskell.org/haskellwiki/Package_versioning_policy [2] http://github.com/Tener/haskell-package-vt [3] http://github.com/Tener/haskell-package-vt/issues [4] http://mostlycode.wordpress.com

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 uzytkown...@gmail.comwrote: Is it possible to automatically (or non

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

2009-06-14 Thread Krzysztof Skrzętnicki
] 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 Magicloudsmagicloud.magiclo...@gmail.com wrote: Hi,  I am learning to use cabal for my code.  Just when I start, I met a question

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

2009-06-11 Thread Krzysztof Skrzętnicki
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] Incremental XML parsing with namespaces?

2009-06-09 Thread Krzysztof Skrzętnicki
}, 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] Incremental XML parsing with namespaces?

2009-06-09 Thread Krzysztof Skrzętnicki
= [Text Hello world!]}]},Text \n]} # we mess with doc1.xml and exchange /doc for /do $ ./hexpat-test Error! XMLParseError mismatched tag (XMLParseLocation {xmlLineNumber = 5, xmlColumnNumber = 2, xmlByteIndex = 205, xmlByteCount = 0}) Best regards Krzysztof Skrzętnicki 2009/6/9 Krzysztof Skrzętnicki

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

2009-06-09 Thread Krzysztof Skrzętnicki
) 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] Random Number

2009-06-07 Thread Krzysztof Skrzętnicki
, 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-have-you-tried Best regards Krzysztof

Re: [Haskell-cafe] Stack overflow

2009-05-28 Thread Krzysztof Skrzętnicki
On Thu, May 28, 2009 at 14:41, Bertram Felgenhauer bertram.felgenha...@googlemail.com wrote: Krzysztof Skrzętnicki wrote: 2009/5/27 Bertram Felgenhauer bertram.felgenha...@googlemail.com: I wrote: Krzysztof Skrzętnicki wrote: The code for modifying the counter: (\ msg - atomicModifyIORef

[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

Re: [Haskell-cafe] Stack overflow

2009-05-27 Thread Krzysztof Skrzętnicki
2009/5/27 Bertram Felgenhauer bertram.felgenha...@googlemail.com: 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. If the previous contents

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 d...@galois.com: gtener: Hi I'm looking for a data

[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

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 jason.du...@gmail.com 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

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 k.kosciuszkiew...@gmail.com: Hello Haskell-Café, I have a problem with high memory usage of cabal

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 leim...@gmail.com wrote: Sounds like the endorsement I was looking for :-) On Fri, Apr

[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

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

Re: [Haskell-cafe] Telnet handshaking

2009-02-15 Thread Krzysztof Skrzętnicki
On Sun, Feb 15, 2009 at 10:25, Martijn van Steenbergen mart...@van.steenbergen.nl 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

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 j...@n-brain.net 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

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 malcolm.wall...@cs.york.ac.uk wrote: Gwern Branwen gwe...@gmail.com 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

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 magicloud.magiclo...@gmail.com 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

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Krzysztof Skrzętnicki
2009/2/11 Gwern Branwen gwe...@gmail.com: touch tools/c2hs/c2hsLocal.deps; /home/gwern/bin/bin/ghc -M -dep-makefile -optdeptools/c2hs/c2hsLocal.deps -fglasgow-exts -O

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 hask...@datakids.org 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

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,

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

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 jgoer...@complete.org 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

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 tehgeekmeis...@gmail.com this is the error message i get: ezekiel-smithburgs-macbook-pro-15% runhaskell Setup.*

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

2009-01-31 Thread Krzysztof Skrzętnicki
2009/2/1 Ezekiel Smithburg tehgeekmeis...@gmail.com 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.

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

2009-01-31 Thread Krzysztof Skrzętnicki
Smithburg tehgeekmeis...@gmail.com oddly, when i do that, i'm back to the original error message. and sorry, i didn't understand what you meant, apparently. On Sat, Jan 31, 2009 at 7:41 PM, Krzysztof Skrzętnicki gte...@gmail.comwrote: 2009/2/1 Ezekiel Smithburg tehgeekmeis...@gmail.com

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

2009-01-31 Thread Krzysztof Skrzętnicki
-install. Am I right? All best Christopher Skrzętnicki On Sun, Feb 1, 2009 at 03:01, Krzysztof Skrzętnicki gte...@gmail.comwrote: testpack builds fine for me. In the original .cabal file there are following lines: If flag(splitBase) Build-Depends: base = 3, containers, random Else

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

2009-01-31 Thread Krzysztof Skrzętnicki
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 gte...@gmail.comwrote: Ok, sorry for the confusion, I should have checked it before: testpack doesn't really need base-4, it needs base-3.The right dependency line

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 kam...@kamysh.orgwrote: 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

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 gte...@gmail.comwrote: On Sat, Jan 31, 2009 at 00:07, Valentyn Kamyshenko kam...@kamysh.orgwrote: 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

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] 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 lambda-be...@yandex.ru wrote:

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/ http://www.ii.uni.wroc.pl/cms/) 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

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\Methariuscabal 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 aneum...@inf.fu-berlin.de: Ah that's interesting. Now

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 dictionary

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

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 I couldn't

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:

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] wrote: Web page at: http://iki.fi

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 scratch.

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 be

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

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 you, Thu

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 currently using

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]

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

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() internally.

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 even without

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

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

2008-07-19 Thread Krzysztof Skrzętnicki
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 simple functions are source of great memory

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 MB total memory in use (4 MB lost due to fragmentation

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 'try' for

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 ... The second one says that TO

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 Nat is

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

2008-03-23 Thread Krzysztof Skrzętnicki
thinking about things like Ord a = YOrd (InfiniteTree a). This really is very cool, Krzysztof. Stephen 2008/3/20 Krzysztof Skrzętnicki [EMAIL PROTECTED]: Hello everyone, I'm working on a small module for comparing things incomparable with Ord. More precisely I want

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'd like to write the following code: instance (Ord

[Haskell-cafe] Type constraints for class instances

2008-03-20 Thread Krzysztof Skrzętnicki
Hello everyone, I'm working on a small module for comparing things incomparable with Ord. More precisely I want to be able to compare equal infinite lists like [1..]. Obviously (1) compare [1..] [1..] = _|_ It is perfectly reasonable for Ord to behave this way. Hovever, it doesn't have to be

[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:rest) =

Re: [Haskell-cafe] Re: (flawed?) benchmark : sort

2008-03-12 Thread Krzysztof Skrzętnicki
In OCaml you have sort and fastsort - the latter doesn't have to be stable. It currently is, because fastsort = sort. I think it is a good thing to leave people an option, if there is something important to choose. On Thu, Mar 13, 2008 at 12:48 AM, [EMAIL PROTECTED] wrote: G'day all. Adrian

Re: [Haskell-cafe] Re: (flawed?) benchmark : sort

2008-03-11 Thread Krzysztof Skrzętnicki
2008, at 12:27 pm, Krzysztof Skrzętnicki wrote: I've written little framework to work on. See sortbench.hs and sortbench.py attachments. Furthermore, I checked Yhc's implementation of sort: it is indeed very fast: I took his earlier code and plugged yhc's sort into it. Compiling with ghc

  1   2   >