Re: [Haskell-cafe] Re: OpenGL Speed!

2010-09-17 Thread Svein Ove Aas
(introduced 2003) is only 250 MB/s/lane. Hold on, don't GPUs typically use 16 lanes? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Svein Ove Aas
future, as I attempt to empty the bug list, but I thought I might as well get the new features out there quickly. There's bound to be new bugs associated with them. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Svein Ove Aas
to the state of the art once I'm done with it. In any case, I expect the actual installation to be via cabal-install. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: persist and retrieve of IO type?

2010-04-10 Thread Svein Ove Aas
. (Of course, thunks aren't /actually/ infinite, in memory. Part of the project would be an attempt to persist the thunks, allowing lazy evaluation after reading them back in. Naturally this would only work with the exact same executable, but that's not necessarily a problem.) -- Svein Ove Aas

Re: [Haskell-cafe] Re: persist and retrieve of IO type?

2010-04-10 Thread Svein Ove Aas
, storing the entire tree of thunks/function pointers pointed to by the original function value, but don't force any values. This at least guarantees that the serialized form is finite. All things considered, I'll be shooting for option #2. -- Svein Ove Aas

Re: [Haskell-cafe] cannot post to haskellmode-em...@projects.haskell.org

2010-02-08 Thread Svein Ove Aas
of spam? I see the same thing, also posting from gmail - email is a no-go. Hm. There's nothing blacklisted in the administrative interface. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] I/O performance drop in ghc 6.12.1

2010-01-14 Thread Svein Ove Aas
? It shouldn't, but then again it shouldn't exist in the first place. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] short licensing question

2010-01-11 Thread Svein Ove Aas
if you ask. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Linking in Large ByteStrings

2010-01-01 Thread Svein Ove Aas
to check the parameters. You should go look up the 6.10.1 version's documentation, which is still correct. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Linking in Large ByteStrings

2010-01-01 Thread Svein Ove Aas
On Fri, Jan 1, 2010 at 8:11 PM, John Millikin jmilli...@gmail.com wrote: On Fri, Jan 1, 2010 at 08:49, Svein Ove Aas svein@aas.no wrote: foo.hs === foreign import ptr bytestring :: Ptr Word8 foreign import ptr bytestring_end :: Ptr Word8 Is this valid syntax? I get a syntax error

Re: [Haskell-cafe] Memory-aware Haskell?

2009-12-25 Thread Svein Ove Aas
(And there still is a problem of foreign code whose memory consumption we know nothing about...) In theory, you could deal with that by hooking malloc. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Performance of functional priority queues

2009-12-25 Thread Svein Ove Aas
languages have asymptotic performance worse than mutating languages simply don't apply to lazy ones. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Does the TMVar and TChan really obey STM rules?

2009-12-24 Thread Svein Ove Aas
Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] inotify-alike for mac os x?

2009-12-04 Thread Svein Ove Aas
and build saner abstractions on top of that; it would be trivial to buffer them haskell-side. That said.. you say you have to handle the events fast. What happens if you don't? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] ANNOUNCE: haskell-mode 2.7.0

2009-11-30 Thread Svein Ove Aas
* mdo correctly indented * Indentation fixes, fixes to the fixes, and fixes to the fixes to the fixes * New command: M-x haskell-check, calls (by default) hlint on the current file. Also bound to C-c C-v. You can also use the flymake minor mode with this. -- Svein Ove Aas

[Haskell-cafe] Custom cabal languages (hooks?)

2009-11-28 Thread Svein Ove Aas
hooks, but I'd appreciate a little advice on how, exactly Well, I've put a snapshot of my current code at http://brage.info/~svein/aes/, so you can have a look. I'd really appreciate the help. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Data.Binary and error handling

2009-11-27 Thread Svein Ove Aas
performance characteristics than what you've tried. I haven't personally benchmarked it. However, it insists on strict bytestrings everywhere, including as the return type of encode. This has made it mostly a no-go for me. -- Svein Ove Aas ___ Haskell-Cafe

Re: [Haskell-cafe] haskell-mode.el mailing list (+ dpatch)

2009-11-25 Thread Svein Ove Aas
is a haskellmode-emacs project on the http://community.haskell.org server we can start a mailing list and issue tracker easily: Well, I know when I'm beat.. http://trac.haskell.org/haskellmode-emacs/ http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs -- Svein Ove Aas

Re: [Haskell-cafe] Re: haskell-mode.el mailing list (+ dpatch)

2009-11-25 Thread Svein Ove Aas
On Wed, Nov 25, 2009 at 11:37 AM, Jose A. Ortega Ruiz j...@gnu.org wrote: Svein Ove Aas svein@aas.no writes: Well, I know when I'm beat.. http://trac.haskell.org/haskellmode-emacs/ http://projects.haskell.org/cgi-bin/mailman/listinfo/haskellmode-emacs Excellent! Thanks. Any objection

Re: [Haskell-cafe] What's wrong with code.haskell.org ?

2009-11-22 Thread Svein Ove Aas
there were plans to replace the problematic hardware, but I don't know how far that has gotten. Maybe we should have a fundraiser for the purpose? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] haskell code from hi

2009-11-22 Thread Svein Ove Aas
of code you'd get any use from. Have a look, you'll see. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] pthread_kill missing?

2009-11-18 Thread Svein Ove Aas
haskell exceptions? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Static Linking Problem

2009-11-12 Thread Svein Ove Aas
On Thu, Nov 12, 2009 at 8:57 AM, David Virebayre dav.vire+hask...@gmail.com wrote: On Wed, Nov 11, 2009 at 5:44 PM, Svein Ove Aas svein@aas.no wrote: My recommendation would be to take glibc off the list of statically linked libraries. How do you do that ? By specifying the entire list

Re: [Haskell-cafe] unboxed arrays restricted to simple types (Int, Float, ..)

2009-11-11 Thread Svein Ove Aas
can handle arbitrary unboxed elements. That said, I'm sure someone will be along shortly to give you the full story. :-) -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Static Linking Problem

2009-11-11 Thread Svein Ove Aas
, in this case it also won't be compatible with *newer* versions of glibc. My recommendation would be to take glibc off the list of statically linked libraries. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] filter using foldr point-free?

2009-11-10 Thread Svein Ove Aas
think I'd bother trying. The pointful variant seems quite readable as-is. :P -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is () a 0-length tuple?

2009-11-08 Thread Svein Ove Aas
, and they generally don't act like values. So, can't we just say that () has a single value, namely ()? It'd make this much simpler, and we won't have to deal with the Nihil monoid. == data Nihil instance Monoid Nihil where mappend _ _ = undefined -- Svein Ove Aas

Re: [Haskell-cafe] Haskell Weekly News: Issue 138 - November 07, 2009

2009-11-07 Thread Svein Ove Aas
' to an underscore? We were experimenting with @pl and yes, that's part of it, but it's also that it skipped a entirely in this case. Just struck me as weird. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

[Haskell-cafe] Re: ANN: haskell-mode 2.6

2009-11-03 Thread Svein Ove Aas
On Sun, Nov 1, 2009 at 8:20 PM, Svein Ove Aas svein@aas.no wrote: Fellow haskellers: Haskell-mode 2.6 has been released. 2.6.2 is now out. This is a pure bugfix release; it fixes some parse issues in haskell-decl-scan and haskell-indentation. -- Svein Ove Aas

Re: [Haskell-cafe] Re: ANN: haskell-mode 2.6

2009-11-02 Thread Svein Ove Aas
On Mon, Nov 2, 2009 at 1:18 PM, Dan Doel dan.d...@gmail.com wrote: On Sunday 01 November 2009 4:45:58 pm Svein Ove Aas wrote: On Sun, Nov 1, 2009 at 8:20 PM, Svein Ove Aas svein@aas.no wrote: Fellow haskellers: Haskell-mode 2.6 has been released. Make that 2.6.1. Naturally, I broke

Re: [Haskell-cafe] Re: ANN: haskell-mode 2.6

2009-11-02 Thread Svein Ove Aas
On Mon, Nov 2, 2009 at 4:18 PM, Svein Ove Aas svein@aas.no wrote: I'm going to try teaching it. Hopefully I won't break anything in the process. I have so taught. If you grab the latest darcs version, it should work. However, I won't be releasing this without further testing, so if you do

[Haskell-cafe] ANN: haskell-mode 2.6

2009-11-01 Thread Svein Ove Aas
* If haskell-indentation errors out, it now fail-safes to inserting a literal newline or deleting one character, for return and backspace respectively. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

[Haskell-cafe] Re: ANN: haskell-mode 2.6

2009-11-01 Thread Svein Ove Aas
On Sun, Nov 1, 2009 at 8:20 PM, Svein Ove Aas svein@aas.no wrote: Fellow haskellers: Haskell-mode 2.6 has been released. Make that 2.6.1. Naturally, I broke something, but I think I'm about out of things to break now. -- Svein Ove Aas

Re: [Haskell-cafe] hSeek in Windows

2009-11-01 Thread Svein Ove Aas
, or the other way around, I don't remember. Which brings up the interesting question of how this works in 6.12, which has text support for modes that are 1:N on /all/ platforms; e.g. UTF-8. If hSeek works there, then chances are it'll work in text mode on windows as well. -- Svein Ove Aas

[Haskell-cafe] Re: ANN: haskell-mode 2.6

2009-11-01 Thread Svein Ove Aas
On Sun, Nov 1, 2009 at 8:20 PM, Svein Ove Aas svein@aas.no wrote: Fellow haskellers: Haskell-mode 2.6 has been released. * By web: http://projects.haskell.org/haskellmode-emacs/ * By darcs: http://code.haskell.org/haskellmode-emacs/ Since there appears to be some confusion: Indentation

Re: [Haskell-cafe] A 3 line program. Preprocessor?

2009-10-27 Thread Svein Ove Aas
it shouldn't work, and you could use recode for the filter. However, wouldn't it be much better to just generate utf-8 in the first place? I find it hard to believe that it's really as hard as all that. -- Svein Ove Aas ___ Haskell-Cafe mailing list

Re: Re[2]: [Haskell-cafe] Is there a null statement that does nothing?

2009-10-27 Thread Svein Ove Aas
of consideration for Evil Haskell? in this case you will get an exception when condition is false (when 'if' used in expression) Yes, that's why it's evil. Or.. I know! ifWithoutElse :: a - Bool - Maybe a (Wait...) -- Svein Ove Aas ___ Haskell-Cafe

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-27 Thread Svein Ove Aas
On Tue, Oct 27, 2009 at 8:31 PM, Colin Paul Adams co...@colina.demon.co.uk wrote: Svein == Svein Ove Aas svein@aas.no writes:    Svein Known bugs: * Occasionally, the haskell-indentation parser    Svein will get stuck   on what it considers to be invalid haskell Quite often.    Svein

Re: [Haskell-cafe] simple parsing

2009-10-27 Thread Svein Ove Aas
enough and just give me a hint how to approach the problem. To begin with, try using the Parsec parser-combinator library instead of writing your own from scratch? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
; this includes, mainly, haskell-newline-and-indent. To avoid annoyance, if you bind RET to haskell-newline-and-indent, you should bind M-RET to plain newline. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
, that page looks so messy.  : ) It looks fine, ignoring the mess. :P While you're at it, you might want to copy the minimal setup from what is described in the README, i.e. including the indentation setup. Or not, if you wish; I'll leave that to your judgement. -- Svein Ove Aas

[Haskell-cafe] Re: ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
On Sun, Oct 25, 2009 at 4:14 PM, Svein Ove Aas svein@aas.no wrote: Fellow Haskellers, I'm happy to announce the release of haskell-mode 2.5. * By web: http://projects.haskell.org/haskellmode-emacs/ * By darcs: http://code.haskell.org/haskellmode-emacs/ Make that 2.5.1. There were some

Re: [Haskell-cafe] Re: cvs.haskell.org down? haskell-mode abandoned?

2009-10-22 Thread Svein Ove Aas
://brage.info/~svein/haskell-mode/; the other stuff is all the same as what's in CVS. I think. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] cvs.haskell.org down? haskell-mode abandoned?

2009-10-20 Thread Svein Ove Aas
that.. actually, who *is* the current maintainer? The last release was Dec. 2007. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: cvs.haskell.org down? haskell-mode abandoned?

2009-10-20 Thread Svein Ove Aas
of improved haskell-mode code (written by other people) that isn't currently in the repository. I can handle that much, if nobody else steps up. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Haskell-tan competition

2009-10-11 Thread Svein Ove Aas
On Sun, Oct 11, 2009 at 5:58 PM, Paul Johnson p...@cogito.org.uk wrote: What about Lambdabot? You're welcome to draw one for her. :-) -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

[Haskell-cafe] Haskell-tan competition

2009-10-10 Thread Svein Ove Aas
, have any of you seen any others? -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is it safe to use unsafePerformIO here?

2009-09-15 Thread Svein Ove Aas
___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is it safe to use unsafePerformIO here?

2009-09-15 Thread Svein Ove Aas
, but that isn't exactly reliable. If that isn't satisfactory, use strict I/O. It's less convenient, but it's also easier to reason about. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Alternative to Data.Binary

2009-03-14 Thread Svein Ove Aas
should be fixable without changing its on-disk format. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] View patterns and warnings about overlapping or non-exhaustive patterns

2009-03-11 Thread Svein Ove Aas
being, it will *work*, you just won't get useful warnings. Hopefully it's going to be fixed for 10.2. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Mystified by Cabal

2009-03-08 Thread Svein Ove Aas
, to at least cover the most used licences - GPL2, GPL3, AGPL, etc. -- Svein Ove Aas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Mystified by Cabal

2009-03-07 Thread Svein Ove Aas
On Sat, Mar 7, 2009 at 6:18 PM, Colin Paul Adams co...@colina.demon.co.uk wrote: I have just attempted Cabal-izing my program (splitting it into a library and main program as well), and I'm mystified by some problems I am having. First, when I try to build the library I get: [co...@susannah

Re: [Haskell-cafe] Re: [Haskell] Lazy IO breaks purity

2009-03-05 Thread Svein Ove Aas
On Thu, Mar 5, 2009 at 2:08 PM, Simon Marlow marlo...@gmail.com wrote: So the argument is something like: we can think of the result of a call to unsafeInterleaveIO as having been chosen at the time we called unsafeInterleaveIO, rather than when its result is actually evaluated. This is on

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Svein Ove Aas
On Tue, Mar 3, 2009 at 6:41 PM, Don Stewart d...@galois.com wrote: allbery: On 2009 Mar 3, at 12:31, mwin...@brocku.ca wrote: In both runs the same computations are done (sequentially resp. parallel), so the gc should be the same. But still using 2 cores is much slower than using 1 core (same

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Svein Ove Aas
On Tue, Mar 3, 2009 at 6:54 PM, mwin...@brocku.ca wrote: I am using GHC 6.8.3. The -O2 option made both runs faster but the 2 core run is still much slower that the 1 core version. Will switching to 6.10 make the difference? There are a lot of improvements; it's certainly worth a try. For

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Svein Ove Aas
I feel the need to point something out here. Both for me and Andrew, the program tops out at allocating ~22MB of memory - in total, over its whole run. Why, then, is max heap size over a gigabyte? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: Re[2]: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Svein Ove Aas
So, apparently the 6.10.1 code runs amiss of this bug: http://hackage.haskell.org/trac/ghc/ticket/2747 I'll be upgrading to HEAD now. If no-one else gets around to it first, I'll probably post some more benchmarks afterwards. ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Supplying a default implementation for a typeclass based on another class

2009-03-01 Thread Svein Ove Aas
On Sun, Mar 1, 2009 at 6:42 PM, Martin Huschenbett hus...@gmx.org wrote: Hi, you could do something like instance (Show a,Read a) = Binary a where  put = put . show  get = fmap read get But then you will need the following language extensions: FlexibleInstances, OverlappingInstances,

[Haskell-cafe] Supplying a default implementation for a typeclass based on another class

2009-02-28 Thread Svein Ove Aas
I'm in the process of writing a distributed filesystem (in haskell, yay), which of course means I'm using Binary for de/serialization. Now, that's fine enough, but for simplicity (and for wireshark), I'd like to be able to have Binary fall back on an instance based on Show/Read for any type that

Re: [Haskell-cafe] Supplying a default implementation for a typeclass based on another class

2009-02-28 Thread Svein Ove Aas
2009/2/28 Lennart Augustsson lenn...@augustsson.net: If you were writing your own Binary class you could simply make Show and Read superclasses of Binary and it would be trivial to have default implementations based on Show and Read. That's my fallback approach, yes, but I don't really want to

Re: Re[2]: Pickling a finite map (Binary + zlib) [was: [Haskell-cafe] Data.Binary poor read performance]

2009-02-24 Thread Svein Ove Aas
2009/2/24 Bulat Ziganshin bulat.zigans...@gmail.com: Hello Felipe, Tuesday, February 24, 2009, 11:24:19 AM, you wrote: Too bad 'Map' is exported as an abstract data type and it's not straighforward to test this conjecture. Any ideas? just make a copy of its implementation to test btw, i

Re: [Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Svein Ove Aas
2009/2/24 Felipe Lessa felipe.le...@gmail.com: Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. Or edit ~/.cabal/config and set the documentation key to True ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Hoogle and Network.Socket

2009-02-21 Thread Svein Ove Aas
On Sat, Feb 21, 2009 at 11:55 AM, Martijn van Steenbergen mart...@van.steenbergen.nl wrote: How about allowing an extra search flag +windows that reveals windows-specific APIs? Likewise for other OS's. Being able to enable API for a specific package requires me knowing in what package I want

Re: [Haskell-cafe] Hoogle and Network.Socket

2009-02-19 Thread Svein Ove Aas
On Thu, Feb 19, 2009 at 3:50 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: I recall that Niel made sure hoogle doesn't search through non-portable libraries (a shame), but I thought Network.Socket could be used on Windows and yet Hoogle does not give any results for 'socket' or any

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Svein Ove Aas
On Thu, Feb 19, 2009 at 2:46 PM, Mark Wotton mwot...@gmail.com wrote: On Thu, Feb 19, 2009 at 9:51 PM, Eugene Kirpichov ekirpic...@gmail.com wrote: Greetings, Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ?

Re: [Haskell-cafe] Hoogle and Network.Socket

2009-02-19 Thread Svein Ove Aas
2009/2/19 Bryan O'Sullivan b...@serpentine.com: On Wed, Feb 18, 2009 at 6:50 PM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: I recall that Niel made sure hoogle doesn't search through non-portable libraries (a shame), but I thought Network.Socket could be used on Windows and yet

Re: [Haskell-cafe] concurrent haskell debugging

2009-02-18 Thread Svein Ove Aas
2009/2/18 Jianzhou Zhao jianz...@seas.upenn.edu: Hi Folks, If I am using Control.Concurrent package, does GHC have any static or runtime tools or debuggers to detect problems, such as deadlock, data races? Deadlocks should be detected out of the box if you compile with -threaded, with the

Re: [Haskell-cafe] How to create an online poll

2009-02-18 Thread Svein Ove Aas
2009/2/18 Andrew Wagner wagner.and...@gmail.com: Help! Help! I'm being suppressed!! Aha! Now we see the violence inherent in the system. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Intergalactic Telefunctors

2009-02-15 Thread Svein Ove Aas
2009/2/15 Gregg Reynolds d...@mobileink.com: The metaphor is action-at-a-distance. Quantum entanglement is a vivid way of conveying it since it is so strange, but true. Obviously one is not expected to understand quantum entanglement, only the idea of two things linked invisibly across a

Re: [Haskell-cafe] Intergalactic Telefunctors

2009-02-15 Thread Svein Ove Aas
On Sun, Feb 15, 2009 at 7:54 PM, Svein Ove Aas svein@aas.no wrote: 2009/2/15 Gregg Reynolds d...@mobileink.com: The metaphor is action-at-a-distance. Quantum entanglement is a vivid way of conveying it since it is so strange, but true. Obviously one is not expected to understand quantum

Re: [Haskell-cafe] Re: space leak with 'concat' ?

2009-02-12 Thread Svein Ove Aas
On Thu, Feb 12, 2009 at 10:36 AM, Simon Marlow marlo...@gmail.com wrote: Peter Verswyvelen wrote: Yes, I was really surprised that this was the case. I while ago I did a little FRP experiment. I made a top level binding to a list of timer event occurrences. The list was generated on another

Re: [Haskell-cafe] threadDelay

2009-02-09 Thread Svein Ove Aas
2009/2/9 Immanuel Litzroth immanuel...@gmail.com: Am I correct in assuming this program should run 100 secs? No, you're off by a factor of a thousand. It's based on microseconds, not milliseconds. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: Data.Map: Enumerating ordered subset of keys

2009-02-08 Thread Svein Ove Aas
On Mon, Feb 9, 2009 at 8:02 AM, Jared Updike jupd...@gmail.com wrote: It looks like two Map.splits will do what I need except for allowing more exact testing of = vs. (since == elements are left out of both maps...?) If your key is an instance of Enum, you can use succ/pred to work around

Re: [Haskell-cafe] Quite confused by simple transformations on this code not working

2009-01-21 Thread Svein Ove Aas
Or if the specificity of (/\) is important to you, you could define f at the global scope using that type, not export it, then declare (/\) as equal to f but with a more restrictive type. On Wed, Jan 21, 2009 at 5:45 AM, Alexander Dunlap alexander.dun...@gmail.com wrote: Instead of declaring

Re: [Haskell-cafe] Memory efficiency questions for real-time graphics

2008-11-03 Thread Svein Ove Aas
On Mon, Nov 3, 2008 at 11:31 AM, Tobias Bexelius [EMAIL PROTECTED] wrote: Before Direct3D 10, its too costly to read back the updated vertex data in every frame, which force you to make this kind of operations on the CPU. With D3D 10 however, you should use the new Stream-Output stage which is

Re: [Haskell-cafe] Array bug?

2008-11-03 Thread Svein Ove Aas
On Sun, Nov 2, 2008 at 7:53 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Bertram Felgenhauer wrote: It's not going to be fixed by itself - the first comment for the bug report basically asks interested parties to submit a proposal for changing this. Well I certainly don't have the skill to

Re: [Haskell-cafe] Array bug?

2008-11-03 Thread Svein Ove Aas
On Mon, Nov 3, 2008 at 4:55 PM, Henning Thielemann I think it is a good idea to switch this feature on and off by a compiler switch. It does not alter the correctness of a program. If the program is incorrect, the switch does only affect the way how the program goes wrong. I disagree. In a

Re: [Haskell-cafe] building c2hs on Mac

2008-10-23 Thread Svein Ove Aas
On Thu, Oct 23, 2008 at 12:38 PM, John Lato [EMAIL PROTECTED] wrote: Hello, I've been trying to build c2hs-0.15.1 on an Intel Mac (10.4), and am having some difficulty. It has dependencies on happy and alex, which would be fine, except that alex itself seems to require alex (using alex

Re: [Haskell-cafe] cabal-install question

2008-10-21 Thread Svein Ove Aas
On Tue, Oct 21, 2008 at 11:37 PM, Ken98 [EMAIL PROTECTED] wrote: Hello, I recently started using cabal-install to install packages. However, ran into a problem today trying to install ftphs where the current HUnit dependency required base (==4). I'm using ghc-6.8.2 on ubuntu. Right, that's

[Haskell-cafe] Where did House/hOp go?

2008-10-16 Thread Svein Ove Aas
I'd finally gotten to the point in learning haskell at which they might be interesting to look at, and then.. they were gone. Does anyone know what happened to these projects? They used to be open-source, so the code should still be around somewhere, right?

Re: [Haskell-cafe] Re: Haskell newbie indentation query.

2008-10-16 Thread Svein Ove Aas
On Wed, Oct 15, 2008 at 5:25 PM, Jules Bean [EMAIL PROTECTED] wrote: There is a new indentation module which does much better at the indentation stuff: http://kuribas.hcoop.net/haskell-indentation.el I didn't realize until I tried to use yours that there are two indentation modules in

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Svein Ove Aas
On Sat, Oct 11, 2008 at 9:30 PM, Iain Barnett [EMAIL PROTECTED] wrote: Personally, I use stored procedures with a database as they protect from sql injection attacks (unless you write some really stupid procedures). Isn't this what parametrized queries are for?

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Svein Ove Aas
On Wed, Oct 1, 2008 at 7:54 PM, Duncan Coutts Because we actually consult the index of available packages more often than you think. Every time you cabal install in a local directory we make sure all the required packages are available and consistent. If we had to go to the network every time

Re: [Haskell-cafe] Re: cabal upgrade

2008-10-01 Thread Svein Ove Aas
On Wed, Oct 1, 2008 at 8:59 PM, Achim Schneider [EMAIL PROTECTED] wrote: Additionally, you could use rsync instead of a tbz download to speed things up. Gentoo does this right. It wouldn't be *that* much faster, and the server load would be higher. The current package index is.. what, half a

Re: [Haskell-cafe] Re: cabal upgrade

2008-10-01 Thread Svein Ove Aas
On Wed, Oct 1, 2008 at 9:56 PM, Stefan Monnier [EMAIL PROTECTED] wrote: It's something to consider in the future, although a change-aware filesystem (git, say? It's fast) would probably be better. ^^^ You misspelled darcs. I know how git would improve on darcs here: It's

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Svein Ove Aas
On Wed, Oct 1, 2008 at 9:52 PM, Martin DeMello [EMAIL PROTECTED] wrote: $ cabal install yi Resolving dependencies... 'yi-0.4.6.2' is cached. Configuring yi-0.4.6.2... cabal: alex version =2.0.1 3 is required but it could not be found. cabal: Error: some packages failed to install:

Re: [Haskell-cafe] System.Process

2008-09-30 Thread Svein Ove Aas
On Tue, Sep 30, 2008 at 2:32 AM, Timothy Goddard [EMAIL PROTECTED] wrote: On Tue, 30 Sep 2008 08:49:44 Andrew Coppin wrote: Before anybody remarks that words will do this, consider the echo command, which treats whitespace meaningfully.) [EMAIL PROTECTED]:~/$ echo foo barbaz foo

[Haskell-cafe] GHC 6.10, OS X, Fink and CPPFLAGS

2008-09-25 Thread Svein Ove Aas
While trying to test 6.10, I ran into the issue that a number of the libraries it wants are not installed by default, and are most conveniently added via Fink. This includes gmp, binutils, readline, etc. /sw/ is not in the default gcc path, of course, so the usual solution is to add

Re: [Haskell-cafe] Re: How to check if two Haskell files are the same?

2008-09-17 Thread Svein Ove Aas
On Wed, Sep 17, 2008 at 7:04 PM, Mauricio [EMAIL PROTECTED] wrote: I would like to write a Haskell pretty-printer, using standard libraries for that. How can I check if the original and the pretty-printed versions are the same? For instance, is there a file generated by GHC at the compilation

Re: [Haskell-cafe] Graphical graph reduction

2008-02-22 Thread Svein Ove Aas
2008/2/22 [EMAIL PROTECTED]: Does anybody know if such a tool exists? I'd be grateful for pointers if it does. I very much doubt that I'm the first person who has thoughts like this, but then again, who knows. People who really know Haskell might think this is too trivial a task to really be

Re: [Haskell-cafe] Windows, or GHC?

2008-02-12 Thread Svein Ove Aas
2008/2/12 Magnus Therning [EMAIL PROTECTED]: The following code will on Linux print three strings each followed by a NULL byte: module Main where putStr0 = putStr $ s ++ \0 main = do putStr0 Hello putStr0 Hello putStr0 Hello On Windows however it will print nothing! In