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
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
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
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
# 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
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
:* 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
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
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
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
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
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:
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
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
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
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
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
://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
, 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
/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
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
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
,
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
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
: 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
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
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
,
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
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
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
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
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
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
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
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
]
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
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
}, 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
= [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
)
putStrLn (show values)
Best regards
Krzysztof Skrzętnicki
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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.*
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.
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
-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
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
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
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
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,
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:
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,
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
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...
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
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
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
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
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:
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
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.
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
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
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
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
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]
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
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.
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
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
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
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
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
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
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
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
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
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
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) =
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
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 - 100 of 112 matches
Mail list logo