On Thu, 2009-11-26 at 10:37 -0800, Brian Denheyer wrote:
> Hello,
>
> I have server where my home directory resides.
>
> I use cabal from (at least) two machines with different processors
> (i386, powerpc) and the common home directory.
>
> I noticed that there is a --global option which does th
On Sat, 2009-11-28 at 14:47 +0100, Svein Ove Aas wrote:
> I'm currently working on a binding to Brian Gladman's C/assembler AES
> implementation.
>
> This code is sufficiently small that it makes little sense to create a
> separate C library for it; furthermore, it isn't typically packaged by
> th
On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote:
> Hi all,
>
> I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They
> use FreeBSD 7.2, but I can't get cabal-install to compile since it
> runs out of memory during the link phase. So far I haven't had trouble
> manually ins
On Sat, 2009-11-28 at 09:29 -0800, Bryan O'Sullivan wrote:
> On Fri, Nov 27, 2009 at 1:05 PM, Henning Thielemann
> wrote:
>
> I found that the dependency on Cairo and GTK originates from
> criterion. I have to build criterion with 'cabal install
> -f-chart criterion'. Unf
On Sat, 2009-11-28 at 20:13 +0100, Henning Thielemann wrote:
> However I have still the problem, that once criterion is installed
> without gtk and cairo, then 'cabal install' still wants to download them
> when I install packages that import 'criterion'. :-( Bug or feature?
That's a problem wit
On Fri, 2009-11-27 at 11:07 +0100, Sebastian Fischer wrote:
> We cannot write
>
> class Name a where ...
> instance Name Name where ...
Yes! Very annoying.
I want to be able to make a type that is the most general instance of a
single-parameter type class. This is a useful OOish thi
On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote:
> The problem with this solution is that it doesn't scale. If we have M
> packages providing types and N packages providing classes, then we
> need M*N additional packages for orphans.
>
> The best long-term solution is probably extending C
On Sun, 2009-11-22 at 16:22 -0800, Brian Denheyer wrote:
> I'm trying to build ghc so that ghci will be included under linux power-pc.
>
> The build dies here:
>
> /tmp/ghc21791_0/ghc21791_0.s: Assembler messages:
>
> /tmp/ghc21791_0/ghc21791_0.s:15:0:
> Error: junk at end of line, first un
On Sun, 2009-11-29 at 18:00 +0100, El Barto wrote:
> Hello,
> I get a segfault when I do
> str <- peekCString ptr
> free ptr
> return (Just str)
As Thomas says, you've not really given us enough info here.
I'll make some guesses and observations anyway :-)
> But not when I don't free the C point
On Sun, 2009-11-29 at 16:42 -0500, David Menendez wrote:
> On Sun, Nov 29, 2009 at 8:37 AM, Duncan Coutts
> wrote:
> > On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote:
> >
> >> The problem with this solution is that it doesn't scale. If we have M
>
On Sun, 2009-11-29 at 09:55 -0800, Alexander Dunlap wrote:
> On Sun, Nov 29, 2009 at 5:37 AM, Duncan Coutts
> wrote:
> > On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote:
> >
> >> The problem with this solution is that it doesn't scale. If we have M
>
On Sun, 2009-11-29 at 19:38 -0800, Alexander Dunlap wrote:
> > Then the other bit you suggested foomonad >= 4.0 && < 4.1 && HAS_MTL
> > would be needed to be able to express that you want a package that has
> > been built with a particular optional instance provided. This is the bit
> > that canno
On Mon, 2009-11-30 at 06:08 +, Malcolm Wallace wrote:
> However, if you really want to terminate the stream at
> the first error, and to reflect this in the type, then I guess you can
> define your own list type:
>
> data ListThenError e a = Cons a (ListThenError e a)
>
On Mon, 2009-11-30 at 09:43 +0100, jean-christophe mincke wrote:
> Hello,
>
> I am writing a port to F# of some haskell standard libraries.
>
> I would like to publish them under an open source license and mention
> the origin of the initial code.
>
> www.haskell.org is under the simple permiss
On Mon, 2009-11-30 at 13:36 +0100, Bas van Dijk wrote:
> On Mon, Nov 30, 2009 at 11:35 AM, Duncan Coutts
> wrote:
> > Ah but flags are not allowed to change the public exported API of a
> > library.
>
> I wasn't aware of this. Where is this documented?
Hmm, I&
On Mon, 2009-11-30 at 20:10 -0800, John Millikin wrote:
> On Mon, Nov 30, 2009 at 03:02, Duncan Coutts
> wrote:
> >> data ListThenError e a = Cons a (ListThenError e a)
> >> | Error e
> >>
> >> Of course this has the disadvantag
ful extension though since very few projects seem to use c2hs to
generate correct imports in the first place. It also does not currently
check stdcall vs ccall calling convention but it could fairly easily be
extended to do so (since it parses those attributes).
--
Duncan Coutts, Haskell Consultant
We
On Thu, 2009-12-03 at 14:05 +0900, Benjamin L.Russell wrote:
> Recently, in changing my work schedule to work mainly from home, I
> switched from mainly using a work Wintel machine running Windows XP
> Professional, Service Pack 3, to mainly using my home PowerPC G4
> PowerBook Macintosh, currently
On Wed, 2009-12-02 at 23:03 +0100, Joachim Breitner wrote:
> Would it be techically possible and feasible to write instance that do
> not actually cause a dependency on the package that defines the class
> resp. the data type? From a distributor point of view, I could live
> quite well with a setu
On Thu, 2009-12-03 at 12:34 +0100, Ketil Malde wrote:
> Duncan Coutts writes:
>
> >> [1] http://hackage.haskell.org/package/failable-list
>
> > Nice.
>
> I agree this is needed (or rather, would be nice to standardise).
>
> Although I don't care for
On Fri, 2009-12-04 at 22:51 +1100, Patrick Caldon wrote:
> I'm looking for the "right" concurrency library/semantics for what
> should be a reasonably simple problem.
>
> I have a little simulator:
>
> runWorldSim :: MTGen -> SimState -> IO SimState
>
> it takes about a second to run on a PC. I
On Thu, 2009-12-03 at 19:49 -0500, wren ng thornton wrote:
> Duncan Coutts wrote:
> > I've got an open mind on the suggestion to amalgamate the two ways the
> > list could end. I'm not especially in favour of generalising for the
> > sake of generalising, especially
On Thu, 2009-12-03 at 13:03 +0100, Emmanuel CHANTREAU wrote:
> Hello
>
> In my futur program, it use a lot of binary trees with strings (words)
> as leaf. There is just arround 1000 words and they will appear a lot of
> times. The program will possibly consume a lot of process and memory
> (it is
On Mon, 2009-12-07 at 20:31 +0100, Henning Thielemann wrote:
> Somehow I missed this thread. I want to say that I have implemented a general
> way to add the information of an exception to the "end" of an arbitrary data
> structure.
>
> http://hackage.haskell.org/packages/archive/explicit-except
On Sat, 2009-12-12 at 01:00 +0100, Marc Weber wrote:
> hackage is success because:
> a) many (most) people do use it (by uploading packages)
> b) it is a comprehensive list of availible packages if not the most
> comprehensive one
>
> Duncan, can you write about your concerns briefly why some
On Mon, 2009-12-14 at 21:02 +1100, Erik de Castro Lopo wrote:
> Bulat Ziganshin wrote:
>
> > POSIX is a *subsystem*. you are using Win32 subsystem. There is also
> > OS2 subsystem for execution of 16-bit OS/2 programs
> >
> > partial emulation of POSIX API in C compiler libraries has nothing
> >
On Wed, 2009-12-16 at 11:18 +0200, Valery V. Vorotyntsev wrote:
> It would be nice if Hackage displayed ``recent changes'' of a package.
> [severity: wishlist]
>
> You see, I am subscribed to the ``hackage - recent additions'' feed
> [http://hackage.haskell.org/packages/archive/recent.rss] and rec
On Wed, 2009-12-16 at 14:12 +, Colin Paul Adams wrote:
> I don't think it's practical to edit all the .cabal packages as they
> come in to say:
>
> ghc-options: -F -pgmF hspp
>
> and cabal install does not recognize this line if I add to to my
> ~/.cabal/config file.
>
> Duncan, is ther
On Thu, 2009-12-17 at 18:08 +, Nils Anders Danielsson wrote:
> I was hoping that I could make use of this feature now:
>
> $ cabal --version
> cabal-install version 0.7.5
> using version 1.8.0.2 of the Cabal library
>
> However, when I try to use it I get the following error:
So there
On Fri, 2009-12-18 at 23:01 +, Ozgur Akgun wrote:
> Hi,
>
> When I run cabal install zlib or cabal upgrade zlib I get the
> following error:
>
> Resolving dependencies...
> Configuring zlib-0.5.2.0...
> Preprocessing library zlib-0.5.2.0...
> Only one output file may be specified
We'll need
On Sat, 2009-12-19 at 09:39 +, Ozgur Akgun wrote:
> I guess the following part is the problematic part: (But I've no idea
> how to resolve it)
[..]
> --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o
> dist/build/Codec/Compression/Zlib/Stream.hs
> Codec/Compression/Zlib/Stream.hsc*
>
On Sun, 2009-12-20 at 11:17 +0100, Sjoerd Visscher wrote:
> I have the same issue with zlib:
>
> /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc
> --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz
> --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4/in
On Sun, 2009-12-20 at 14:43 -0800, Jason Dusek wrote:
> The message I get is:
>
> Resolving dependencies...
> Found existing header file at c/data.h
> Configuring cedict-0.2.6...
> setup: Missing dependency on a foreign library:
> * Missing header file: c/data.h
> It take
On Mon, 2009-12-21 at 10:32 +, Conor McBride wrote:
> QUESTION: Is the sensible upgrade path to build cabal-install 0.8 with
> your old GHC, before installing 6.12? Does this even work?
Yes and yes.
> Anyhow, I've got 6.12 and I need cabal-install 0.8. Can I find it?
Note that it is now on
On Mon, 2009-12-21 at 22:55 -0800, Mark Lentczner wrote:
> I have been thinking about the location of installed Haskell package
> files on Mac OS X. The choice of location affects:
>
> [..]
>
> Thoughts? I'd be happy to help by supplying patches for various tools
> to normalize all this on some a
On Mon, 2009-12-21 at 22:55 -0800, Mark Lentczner wrote:
> I suggest that the default place for global installs on Mac OS X be:
> /Library/Haskell/
As I've mentioned I'm mostly an OSX ignoramus. One thing I think I've
seen said before however is that things in /Library and ~/Library are
sup
On Mon, 2009-12-21 at 23:08 +, Ozgur Akgun wrote:
> So what's the recommended thing to do now?
Please file a ticket in the ghc trac with as much detail as is necessary
for someone else to reproduce this.
Given what we have at the moment I cannot see the cause of the problem.
>From what you'v
On Tue, 2009-12-22 at 07:39 -0800, Aaron Tomb wrote:
> Do we need some more flexible options to GHC, giving users more
> control on the ordering of libraries on the linker command line?
I don't think there is any single ordering that will work. Different
packages need libs from different direct
On Tue, 2009-12-22 at 21:48 +, Ozgur Akgun wrote:
> What about this part:
>
> -o dist/build/Codec/Compression/
> Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc
>
> Isn't it passing multiple (two in this case) output parameters? Or am
> I missing sth?
No, that's one -o flag and a single add
On Wed, 2009-12-23 at 00:14 +0100, Bardur Arantsson wrote:
> Hi all,
>
> Sorry about the inflammatory title, but I just got this message from an
> uploaded package ("hums"):
>
>Warning: This package indirectly depends on multiple versions of the
>same package. This is highly likely to ca
On Wed, 2009-12-23 at 18:16 -0600, Tom Tobin wrote:
> I noticed on Hackage that packages that are MIT licensed show up as
> "OtherLicense". I took a peek inside the Cabal code, and noticed that
> the License type has lines for MIT, but commented out [1]:
>
> > ---- | The MIT license, similar
On Sun, 2009-12-27 at 10:06 +0100, Thomas Hühn wrote:
> The following packages are broken, either because they have a problem
> listed above, or because they depend on a broken package.
> binary-0.5.0.2
> digest-0.0.0.8
> template-0.1.1.1
> utf8-string-0.3.6
> zip-archive-0.1.1.4
> haddock-2.4.2
>
On Tue, 2009-12-29 at 00:14 -0800, Judah Jacobson wrote:
> > Downloaded the package and do configure manually:
> >
> > ./configure --with-readline-includes=/opt/local/include
> > --with-readline-libraries=/opt/local/lib
>
> You should use:
>
> cabal install readline
> --configure-option=--with
On Mon, 2010-01-11 at 13:33 +0100, Henk-Jan van Tuyl wrote:
> L.S.,
>
>
> I had a strange response from Cabal:
>>cabal upgrade hlint
>Resolving dependencies...
>cabal: cannot configure containers-0.3.0.0. It requires base >=4.2 && <6
>For the dependency on base >=4.2 && <6 there a
On Mon, 2010-01-11 at 19:59 -0500, Keith Sheppard wrote:
> so what should I make of these errors? Are they useful in some way or
> just a problem with the build environment?
The latter.
> (If that's the case I think they should probably be removed since
> they're confusing for potential users)
On Mon, 2010-01-11 at 09:30 -0800, Andrey Sisoyev wrote:
>
> Svein Ove Aas wrote:
> >
> > In this case, LGPL is a problem. It requires you to offer a way to
> > re-link such binaries against new versions/implementations of the
> > library, which in practice requires it to be either open source or
On Tue, 2010-01-12 at 10:24 +0100, minh thu wrote:
> In short, if I understand you correctly, you would just have to
> provide your code in unlinked form regardless of the existence of some
> tool to create another ABI-compatible version of the LGPL library.
Right.
The procedure I mentioned is j
On Wed, 2006-11-22 at 09:12 +, DavidA wrote:
> Some recent comments suggested that every time there is a new GHC release,
> there needs to be a new wxHaskell release (or insert name of other library
> here) to work with it. This seems to be true even for minor upgrades, like
> 6.4.1 -> 6.4.2
An updated version of the Glade tutorial for Haskell & Gtk2Hs is now
available on the Gtk2Hs website:
http://haskell.org/gtk2hs/docs/tutorial/glade/
This is of course linked from the documentation page on the Gtk2Hs site:
http://haskell.org/gtk2hs/documentation/#tutorials
Thanks very much to Ed
On Mon, 2006-11-27 at 22:26 +, Magnus Therning wrote:
> Can I use cabal to build packages that incorporates C libraries and FFI
> Haskell created using c2hs?
Yes you can. Cabal understands a bit about .chs files. I think all you
need to do is specify the module in the exposed-modules or other-
On Tue, 2006-11-28 at 15:10 +0300, Bulat Ziganshin wrote:
> Hello Niko,
>
> Tuesday, November 28, 2006, 1:42:10 PM, you wrote:
>
> > I personally find doing higher order functions with IO extremely
> > difficult, and the resulting compiler errors are often downright scary.
> > But this is probabl
On Tue, 2006-11-28 at 17:24 +, Magnus Therning wrote:
> On Tue, Nov 28, 2006 at 12:00:50 +, Magnus Therning wrote:
> [..]
> >Can't really see anything obviously bogus about the following:
> >
> > % cat Foo.chs
> > module Foo where
> >
> > #include "foo.h"
> >
> > fooOne i = {# call foo1
On Wed, 2006-11-29 at 11:26 +, Magnus Therning wrote:
> >Or the simpler way is to include in your .cabal file:
> >
> >extensions: ForeignFunctionInterface
> >
> >That then applies to every module in the lib and has the advantage of
> >being portable between compilers.
>
> Ah, good point.
>
>
On Wed, 2006-11-29 at 20:27 +0100, [EMAIL PROTECTED] wrote:
> On the implementation level, lazy evaluation is in the way when
> crunching bytes.
Something I rather enjoyed when hacking on the ByteString lib is finding
that actually lazy evaluation is great when crunching bytes, though you
do need
On Sat, 2006-12-16 at 19:50 +0100, Waldemar Biernacki wrote:
> Hello!
>
> I'd like to start programming in Haskell.
> But as an "industry programmer" I have a hope to use Haskell in my every-day
> work. Big part of my every-day work are GUI applications (in MS-Windows)
> working with SQL databa
On Fri, 2007-01-05 at 17:51 +, Pedro Baltazar Vasconcelos wrote:
>
> Hello all,
>
> I noticed that GHC generates slower code on an Linux amd64 bit platform than
> the 32-bit version on a cheaper 32-bit machine.
> CPUTime for running sieve of Erathostenes to generate 10,000 primes:
> Athlon X
On Sat, 2007-01-06 at 15:30 -0800, tphyahoo wrote:
> I'm having trouble installing ghc 6.6. On ubuntu, virtual server (user mode
> linux).
>
> Something seems to be killing the process, no idea why.
>
> Anyone seen this?
Yes.
> /usr/bin/ar: creating libHSbase.a
> xargs: /usr/bin/ar: terminated
On Sun, 2007-01-07 at 02:07 +, Ross Paterson wrote:
> On Sun, Jan 07, 2007 at 12:44:46PM +1100, Donald Bruce Stewart wrote:
> > Those new to Cabal always seem to assume things are going badly when
> > "happy not found". We need to address the psychological aspect
> > of Cabal's config process
On Mon, 2007-01-08 at 18:20 +0100, Hans van Thiel wrote:
> Hello All,
>
> The beta of the 'Gtk2Hs:Getting Started' short tutorial for beginners,
> Haskell GUI for Dummies, if you like :-) can be viewed at
> http://j-van-thiel.speedlinq.nl/gtk2hs/gtk2hsGetStart.html
>
> It tells what Gtk2Hs is, s
On Mon, 2007-01-08 at 16:11 -0200, Alex Queiroz wrote:
> Hallo,
>
> On 1/8/07, Hans van Thiel <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > The beta of the 'Gtk2Hs:Getting Started' short tutorial for beginners,
> > Haskell GUI for Dummies, if you like :-) can be viewed at
> > http://j-van-thie
On Tue, 2007-01-23 at 13:35 +0200, Yitzchak Gale wrote:
>
>
> Prelude> let f .! g = ((.) $! f) $! g
> Prelude> let f = undefined :: Int -> IO Int
> Prelude> f `seq` 42
> *** Exception: Prelude.undefined
> Prelude> ((>>= f) . return) `seq` 42
> 42
> Prelude> ((>>= f) .! return) `seq` 42
> 42
>
>
On Wed, 2007-01-24 at 00:33 +0200, Yitzchak Gale wrote:
> My challenge is:
>
> 1. Find a way to model strictness/laziness properties
> of Haskell functions in a category in a way that is
> reasonably rich.
The reason it's not obvious for categories is because the semantics for
Haskell comes from
On Tue, 2007-01-23 at 19:47 -0800, Aaron Tomb wrote:
> On Jan 23, 2007, at 5:13 PM, Clifford Beshers wrote:
>
> > I don't suppose anyone has any Haskell code that understands the
> > PDF format, do they?
>
> I know of one, though I'm not sure how complete it is:
>
> http://www.alpheccar.o
On Sat, 2007-01-27 at 19:11 +0100, Henning Thielemann wrote:
> On Sat, 27 Jan 2007, Donald Bruce Stewart wrote:
> > The underlying Get and Put monads support explicit endian writes and
> > reads, which you can add to your instances explicitly:
> >
> > http://www.cse.unsw.edu.au/~dons/binary/D
On Fri, 2007-01-26 at 15:40 +0100, Arie Peterson wrote:
> Hello,
>
>
> Donald Bruce Stewart wrote:
>
> > Ok, I forgot one point. It is possible to automatically derive instances
> > of Binary for your custom types, if they inhabit Data and Typeable,
> > using an SYB trick. Load tools/derive/Bina
On Mon, 2007-01-29 at 21:25 +0900, 向井 淳 wrote:
> c2hs fails to process __extension__?
>
> From the changelog, c2hs now can understand __extension.
> Is this an exceptional case?
Did you try the very latest darcs version of c2hs? Yesterday I added a
couple patches that try to cope with more uses
On Mon, 2007-01-29 at 22:26 +0900, 向井 淳 wrote:
> On 2007/01/29, at 21:55, Duncan Coutts wrote:
> > Did you try the very latest darcs version of c2hs? Yesterday I added a
> > couple patches that try to cope with more uses of __extension.
>
> Yes. I use the latest version of c
On Mon, 2007-01-29 at 22:26 +, Duncan Coutts wrote:
> On Mon, 2007-01-29 at 22:26 +0900, 向井 淳 wrote:
> > On 2007/01/29, at 21:55, Duncan Coutts wrote:
> > > Did you try the very latest darcs version of c2hs? Yesterday I added a
> > > couple patches that tr
On Tue, 2007-01-30 at 09:38 +, Ross Paterson wrote:
> On Tue, Jan 30, 2007 at 09:52:01AM +1100, Donald Bruce Stewart wrote:
> > ross:
> > > why do you need a Put monad, which always seems to have
> > > the argument type ()? Monoids really are underappreciated.
> >
> > For the syntax, and So t
On Wed, 2007-01-31 at 14:38 +0300, Bulat Ziganshin wrote:
> Hello Duncan,
>
> Tuesday, January 30, 2007, 1:22:58 PM, you wrote:
>
> > Can anyone see a real serialisation use case that needs a monad for the
> > serialisation side? I'd thought I had an example, but I was wrong.
>
> my program, Fr
On Thu, 2007-02-01 at 10:47 +0300, Bulat Ziganshin wrote:
> Hello Duncan,
>
> Thursday, February 1, 2007, 3:39:16 AM, you wrote:
>
> >> > Can anyone see a real serialisation use case that needs a monad for the
> >> > serialisation side? I'd thought I had an example, but I was wrong.
> >>
> >> my
On Fri, 2007-02-02 at 17:02 +0300, Bulat Ziganshin wrote:
> Hello Chris,
>
> Friday, February 2, 2007, 4:44:37 PM, you wrote:
>
> > If I have two identical STUArrays (same type and bounds) then what is the
> > most
> > efficient way to overwrite the data in the destination with the data in the
>
On Mon, 2007-02-05 at 19:26 -0800, Stefan O'Rear wrote:
> I have a structure:
>
> data Attr = Attr { fg :: !Color,
>bg :: !Color,
>bold :: !Bool,
>blink :: !Bool,
>rv :: !Bool,
>halfBright :: !Bool,
On Sat, 2007-02-10 at 09:32 +1100, John Ky wrote:
> Hi,
>
> I noticed on Windows that when I use IO functions that write to stdout
> when the process is lacking a console, those functions throw an
> IOError. I'm not sure if this also occurs for stderr because I
> haven't tried it.
>
> Some clas
On Sat, 2007-02-10 at 23:46 +1100, John Ky wrote:
> Hi Duncan,
>
> Thanks for your comments. In the context of a haskell process running
> as a Windows service, a message box is useless, because Haskell
> services do not have a GUI and cannot interact with the desktop.
Good point. Perhaps you ca
On Sun, 2007-02-11 at 17:18 +, Neil Mitchell wrote:
> Hi
>
> > Good point. Perhaps you can persuade the people who look after GHC on
> > win32 to have it use the Windows debug log service for exception
> > messages like that when there's no GUI available. Of course if you can
> > code up and s
On Tue, 2007-02-13 at 15:27 -0500, Jefferson Heard wrote:
> Hi, I am running the following code against a 210 MB file in an attempt to
> determine whether I should use alex or whether, since my needs are very
> performance oriented, I should write a lexer of my own. I thought that
> everything
On Tue, 2007-02-13 at 15:12 -0600, Creighton Hogg wrote:
>
>
> On 2/13/07, Duncan Coutts <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-02-13 at 15:27 -0500, Jefferson Heard wrote:
> > Hi, I am running the following code against a 210 MB file in
On Tue, 2007-02-13 at 22:43 -0500, Jefferson Heard wrote:
> It was suggested that I might derive some performance benefit from using lazy
> bytestrings in my tokenizer instead of regular strings. Here's the code that
> I've tried. Note that I've hacked the "basic" wrapper code in the Lazy
> ve
On Tue, 2007-02-27 at 16:51 +, Claus Reinke wrote:
> okay, profiling was not available for the Haskell version back then, but
> using ML
> profiling to improve a Haskell version sounds highly dangerous to me, even
> more
> so if the authors do not even mention any awareness of this danger.
On Wed, 2007-02-28 at 09:51 -0800, Bryan O'Sullivan wrote:
> Bulat Ziganshin wrote:
>
> > can you please provide examples of such code?
>
> I'd recommend taking a look at the new binary package. It's very
> cleanly written, and mostly easy to understand. It's also easy to see
> where the opti
On Wed, 2007-02-28 at 16:38 +0300, Bulat Ziganshin wrote:
> Hello Duncan,
>
> Tuesday, February 27, 2007, 1:09:53 PM, you wrote:
>
> can you please provide examples of such code? the ultimate goal is to
> have tutorial on writing efficient code in high-level manner, but that
> is too ambitious. j
On Thu, 2007-03-01 at 00:22 +, Claus Reinke wrote:
> >The main example of course is ByteString fusion as presented in our recent
> >paper:
> >http://www.cse.unsw.edu.au/~dons/papers/CSL06.html
>
> btw, why did you restrict yourself to improving [Char], rather than [a]?
We're not finished! :-
On Sat, 2007-03-03 at 15:19 +, [EMAIL PROTECTED] wrote:
> I just tried to make HSH 1.2 but it needs Cabal, which I
> apparently don't have installed. I also don't have
> runghc installed (referenced at cabal homepage). Using
> ghc instead failed as follows:
>
>
> Setup.lhs:2:
> Failed to
On Mon, 2007-03-05 at 14:07 -0300, Alex Queiroz wrote:
> Hallo,
>
> Gtk2Hs and HDBC are both LGPL licensed, but aren't they always
> static linked? Is there a way to use them in closed-source programs?
Well let me put it this way: I'm not going to sue you and I doubt any of
the other contrib
On Tue, 2007-03-06 at 10:31 +0100, Udo Stenzel wrote:
> Neil Mitchell wrote:
> > As others have said though, I wouldn't worry overly about it. The
> > whole concept of static linking being wrong, but dynamic linking being
> > fine, when you can flip between the modes just by changing compiler,
> >
On Tue, 2007-03-06 at 03:00 +, Neil Mitchell wrote:
> The whole concept of static linking being wrong, but dynamic linking
> being fine, when you can flip between the modes just by changing
> compiler, is just silly. You don't infringe (or uninfringe) copyright
> with a command line flag.
Jus
On Wed, 2007-03-14 at 09:56 +1100, Donald Bruce Stewart wrote:
> magnus:
> > I'm trying to use c2hs but get stuck when including sys/types.h (though
> > the problem really resides in pthreadtypes.h):
> >
> > % ./Setup.hs build -v
> > Preprocessing executables for kowasu-0.1...
> > /usr/bin/c2hs
On Sun, 2007-03-18 at 05:48 -0400, Isaac Dupree wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Compare the guarantees (in practice and/or theoretically) of
> inlinePerformIO
> and
> unsafePerformIO . unsafeInterleaveIO (i.e. function composition)
> (aside from inlinePerformIO being
On Mon, 2007-03-19 at 12:14 +0100, Maxime Henrion wrote:
> I stepped onto your mail and found it particularly interesting since
> I'm currently writing a chess client in Haskell, using GTK+, glade
> and the nice Cairo library :-). It is called LambdaChess!
Cool! When you have something you want
On Mon, 2007-03-19 at 14:27 +0100, Maxime Henrion wrote:
> As for the portability of the my graphics code, I can just say it's
> GTK+, using Glade XML files, Cairo and SVG on top of Cairo. All
> of this is supposed to work fine on Windows, if that's what you
> were asking. I'm not sure about OS
On Thu, 2007-03-22 at 14:04 +0530, Arun Suresh wrote:
> I am currently working on a project where basically we do a lot of XML
> validation and digestion. For example :
> We recieve an XML document A, if the document passes schema
> validation, we do some business level validations, then from A, w
On Fri, 2007-03-23 at 20:24 +0300, Thach Si Lam wrote:
> I'm trying to write Bouncing Ball demo in Gtk2hs. But i coudn't find
> timer class (like in wxhaskell demo) in Gtk2hs.
There is timeoutAdd:
http://haskell.org/gtk2hs/docs/gtk2hs-docs-0.9.10/System-Glib-MainLoop.html#v%3AtimeoutAdd
used li
On Sat, 2007-03-24 at 11:53 +, Neil Mitchell wrote:
> > This is a highly non-academic concern. Many widely used libraries,
> > such as Parsec, operate only on lists and not the newer and more
> > efficient sequence types, such as bytestrings.
>
> Lists in Haskell are the nicest data structur
On Wed, 2007-03-28 at 20:44 +0200, Benjamin Franksen wrote:
> But... you have the type of all functions nailed down in classes. Thus, even
> if a change in the API means a lot of tedious work adapting the concrete
> implementations, at least the compiler helps you to check that the
> implementatio
On Fri, 2007-03-30 at 14:24 -0700, Jeremy Shaw wrote:
> Hello,
>
> Did you compile with -O2 ? That makes a huge difference when using ByteString.
Hmm, I think we can do better than that. It would be nicer to have it
work fast without needing any -O flags at all in the user's module.
Lets look at
On Sun, 2007-04-01 at 16:46 -0400, Paul Hudak wrote:
> Here's a solution that I think is a bit more elegant.
>
> -Paul
>
> josephus n k =
> let loop xs = let d:r = drop (k-1) xs
>in d : loop (filter (/= d) r)
> in take n (loop (cycle [1..n]))
Lovely.
.. must..
On Sun, 2007-04-01 at 17:25 +0200, Thomas Schilling wrote:
> On 31 mar 2007, at 04.09, Duncan Coutts wrote:
> >
> > The ByteString libs was more-or-less the first high performance thing
> > that we wrote and we've learnt plenty more since then. I think
> &
On Fri, 2007-04-06 at 18:03 +0200, Michael Walter wrote:
> Hi,
>
> where would you get sourceview=>0.9.11 for Win32?
You can build Gtk2Hs from source with the appropriate C libraries
installed or you can wait for me to do the same. It's on my TODO list
but probably will not get done for at least
On Sun, 2007-04-08 at 18:20 +0100, Dominic Steinitz wrote:
> > setup: Unrecognised flags: --disable-haddock-use-packages
> > make[1]: *** [.setup-config] Error 1
> > make[1]: Leaving directory `/home/dom/yi/yi/packages/yi-vty'
That's using a feature from the development version of cabal. I just
ha
601 - 700 of 1289 matches
Mail list logo