[Haskell-cafe] Parsing of bytestrings with non-String errors?

2010-02-21 Thread Magnus Therning
works on bytestrings and allows using a custom error type? Or maybe there's some very basic reason why String is so commonly used? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

Re: [Haskell-cafe] Parsing of bytestrings with non-String errors?

2010-02-22 Thread Magnus Therning
On 22/02/10 18:44, Bryan O'Sullivan wrote: > On Sun, Feb 21, 2010 at 4:36 AM, Magnus Therning <mailto:mag...@therning.org>> wrote: > > I've looked at polyparse and attoparsec and they seem to have in common > that the error always is a String. My cu

Re: [Haskell-cafe] Parsing of bytestrings with non-String errors?

2010-02-23 Thread Magnus Therning
On Tue, Feb 23, 2010 at 00:39, Bryan O'Sullivan wrote: > On Mon, Feb 22, 2010 at 2:38 PM, Magnus Therning > wrote: >> >> My thoughts went more like a parser type like >> >>    data Parser e a = ... > > Yes, I knew that's where you were going :-) &

Re: [Haskell-cafe] [offtopic] UNIX Shell (was: GHC RTS question)

2010-02-24 Thread Magnus Therning
a separate word. That is, "$@" is equivalent to "$1" "$2" ... If the double-quoted expansion occurs within a word, the expansion of the first parameter is joined with the beginning part of the original word, and the expansion of the last parameter is joi

[Haskell-cafe] Testing and module export lists

2010-02-24 Thread Magnus Therning
d not qualify as "nice" ;-)? Maybe there's a switch that causes GHC to simply ignore the export list of a module and export everything? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http:/

Re: [Haskell-cafe] Testing and module export lists

2010-02-24 Thread Magnus Therning
built, but I don't want to export them all. The only way I see of achieving this is to split each module in two, one public and one internal, where the public one just re-exports the relevant pieces of the internal one. That's workable, but hardly aesthetically

Re: [Haskell-cafe] how to send a string to a tuple

2010-03-03 Thread Magnus Therning
beginners instead? Also, include any code you have so far. You're more likely to get answers if you include the code you are having problems with. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning

Re: [Haskell-cafe] How do you set up windows enviroment

2010-03-03 Thread Magnus Therning
is... well slightly better then in W98 etc.). > > Does anyone have a tips for setting Haskell environment on Windows 7. http://stackoverflow.com/questions/304614/haskell-on-windows-setup /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber

Re: [Haskell-cafe] GPL answers from the SFLC (WAS: Re: ANN: hakyll-0.1)

2010-03-05 Thread Magnus Therning
the API level. Without the insistence you point out, GPL and LGPL would be pretty much the same license. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

Re: [Haskell-cafe] GPL answers from the SFLC (WAS: Re: ANN: hakyll-0.1)

2010-03-05 Thread Magnus Therning
On Fri, Mar 5, 2010 at 08:55, minh thu wrote: > 2010/3/5 Magnus Therning : >> On Thu, Mar 4, 2010 at 18:05, Stephen Tetley >> wrote: >>> Hi Tom >>> >>> Hmm, its seems I'm due to eat my hat... >>> >>> To me though, the judgement m

Re: [Haskell-cafe] GPL answers from the SFLC (WAS: Re: ANN: hakyll-0.1)

2010-03-05 Thread Magnus Therning
ct under GPL. I don't see this being anything that anyone involved with Hackage can be held responsible for, the responsibility must fall on the author of libBSD3. In this scenario I don't see Hackage as anything more than a conduit. /M -- Magnus Therning(OpenPGP: 0xAB4D

Re: [Haskell-cafe] Re: Haskell-friendly Linux Distribution

2010-03-28 Thread Magnus Therning
orth > Jeff> looking into. > > +1 for Arch. Add one more for Arch. I have to say it looks like Debian has gotten their act together somewhat when it comes to Haskel development. Many of the reasons for my deserting Debian seem have been taken care of. /M -- Magnus Therning

Re: [Haskell-cafe] Re: Haskell-friendly Linux Distribution

2010-03-28 Thread Magnus Therning
On 28/03/10 12:53, Joachim Breitner wrote: > Hi, > > Am Sonntag, den 28.03.2010, 09:04 +0100 schrieb Magnus Therning: >> I have to say it looks like Debian has gotten their act together >> somewhat when it comes to Haskel development. Many of the reasons for >> my dese

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-04-07 Thread Magnus Therning
s" and > "page history" links seem redundant. "Special pages" is rather useful for administrators, but not *that* useful for regular users I guess. Would it be possible to put it easily accessible for administrators (people who are allowed to add users), but hide it away

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-16 Thread Magnus Therning
>>putFixed (a,b) = putFixed2 a b >>getFixed = getFixed2 (,) >> >> in `size` function, what does the `~` mean ? > > A lazy pattern match: http://en.wikibooks.org/wiki/Haskell/Laziness > (there is a better name for it, but I can't remember). Irrefutable patt

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-24 Thread Magnus Therning
ng > developed by myself only. Then there are developers like me, who even on small one-man projects try to keep the official/published repo buildable at all times. I keep my development environment local or sometimes in an un-advertised repo. /M -- Magnus Therning

Re: [Haskell-cafe] Using a library in a executable within same cabal package

2010-04-24 Thread Magnus Therning
.haskell.org/packages/archive/tagsoup/0.8/tagsoup.cabal -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Description: Open

Re: [Haskell-cafe] Compressing GHC tarballs with LZMA

2010-04-24 Thread Magnus Therning
est version of lzma-based compression use .xz extension? How common is support for .xz on the platforms we are interested in here? I just passed a .tar.xz to a Mac user and got an email back that he couldn't unpack it. Rather than dig deeper I just sent him a .tar.gz, so I don'

Re: [Haskell-cafe] installing haskell platform on 64-bit ubuntu 10.04 (Lucid)

2010-05-08 Thread Magnus Therning
ly quickly, with an error 'cause it can't build the "hello > world" test program, complaining: > > : unknown package: haskell98 > > > Anyone else seen this? Am I missing something obvious? What does 'ghc-pkg list|grep haskell' show? /M

Re: [Haskell-cafe] UPDATE: haskellmode for Vim now at projects.haskell.org (+screencast; -)

2009-04-21 Thread Magnus Therning
ost when adding its vector package locations) > 07/12/2008 >  haskell_doc.vim: since we're now reading from multiple haddock indices in >                   DocIndex, we need to extend, not overwrite entries.. > > 03/12/2008 >  ghc.vim: do not reset b:ghc_static_options on every reload &

Re: [Haskell-cafe] UPDATE: haskellmode for Vim now at projects.haskell.org (+screencast; -)

2009-04-21 Thread Magnus Therning
oints, step, and inspect variables? > It could be different Vim behaviour, but extra url-encoding is > rather specific to browsing, not editing. > Thanks for reporting the problems (it is the only way I get to know > about other platforms/configurations than the one I'm using!). Th

[Haskell-cafe] ANNOUNCE: dataenc 0.12.1.0

2009-04-22 Thread Magnus Therning
4.1), containers (>=0.2.0 && <0.3) License BSD3 Copyright Magnus Therning, 2007-2009 AuthorMagnus Therning Maintainermag...@therning.org Category Codec Home page http://www.haskell.org/haskellwiki/Library/Data_encoding Upload da

[Haskell-cafe] Base version on Hackage?

2009-04-23 Thread Magnus Therning
I'm not sure why building of my recently uploaded version of dataenc fails to build on Hackage[1]. Where can I find out what version of base is available on Hackage? /M [1]: http://hackage.haskell.org/packages/archive/dataenc/0.12.1.0/logs/failure/ghc-6.10 -- Magnus The

Re: [Haskell-cafe] Base version on Hackage?

2009-04-23 Thread Magnus Therning
1]: >> http://hackage.haskell.org/packages/archive/dataenc/0.12.1.0/logs/failure/ghc-6.10 > > > > -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe Ha

Re: [Haskell-cafe] Base version on Hackage?

2009-04-23 Thread Magnus Therning
On Thu, Apr 23, 2009 at 6:02 PM, Ross Paterson wrote: > On Thu, Apr 23, 2009 at 05:47:23PM +0100, Magnus Therning wrote: >> I'm not sure why building of my recently uploaded version of dataenc >> fails to build on Hackage[1].  Where can I find out what version of base >&g

Re: [Haskell-cafe] Base version on Hackage?

2009-04-23 Thread Magnus Therning
Ross Paterson wrote: > On Thu, Apr 23, 2009 at 06:46:24PM +0100, Magnus Therning wrote: >> On Thu, Apr 23, 2009 at 6:02 PM, Ross Paterson wrote: >>> On Thu, Apr 23, 2009 at 05:47:23PM +0100, Magnus Therning wrote: >>>> I'm not sure why building of my r

[Haskell-cafe] OT: Good Linux distro for netbook + Haskell?

2009-04-24 Thread Magnus Therning
rsions of packages. Arch Linux is very up-to-date, but I'm not convinced it's a distro suitable for an Eee without HDD (I'm prepared to be proven wrong though). Is there something else out there I should be looking at? /M -- Magnus Therning(

Re: [Haskell-cafe] OT: Good Linux distro for netbook + Haskell?

2009-04-24 Thread Magnus Therning
Adam Turoff wrote: > On Fri, Apr 24, 2009 at 4:43 PM, Magnus Therning wrote: >> I've decided to shop around for other options when it comes to a Debian >> distro to put on my Eee PC 900. Since it has no HDD I want something >> that isn't too bloated (some is all

Re: [Haskell-cafe] OT: Good Linux distro for netbook + Haskell?

2009-04-24 Thread Magnus Therning
Adam Turoff wrote: > On Fri, Apr 24, 2009 at 4:55 PM, Magnus Therning wrote: >> Interesting, but how is it when it comes to availability of up-to-date >> Haskell packages? If it's based on Ubuntu 8.10 then I'd expect out of >> date GHC and a need to use cabal-ins

Re: [Haskell-cafe] Getting started - help

2009-04-30 Thread Magnus Therning
hat I don't understand at all what you intend this code to do. It isn't valid Haskell, but I think that instead of battling Haskell you should, at this point, go back to your algorithm. Answer the question, given your type, what steps are needed to add a fan to a single film? Then

Re: [Haskell-cafe] Getting started - help

2009-04-30 Thread Magnus Therning
stDatabase = [casinoRoyale] > I get this error: > > *** Expression     : ["Casino Royale","Martin > Campbell",2006,[("Garry","Dave","Zoe")]] > *** Term           : [("Garry","Dave","Zoe")] >

[Haskell-cafe] Getting WriterT log lazily

2009-05-03 Thread Magnus Therning
here an easier way to force evaluation there?). Without `unsafePerformIO` all the sleeping is done up front, and all numbers are print at once at the end. The goal is of course to use code along the same shape to do something more useful, and then `unsafePerformIO` will really be unsafe... /

Re: [Haskell-cafe] Getting WriterT log lazily

2009-05-04 Thread Magnus Therning
Martijn van Steenbergen wrote: Magnus Therning wrote: Without the `seq` the call to sleep will simply be skipped (is there an easier way to force evaluation there?). Without `unsafePerformIO` all the sleeping is done up front, and all numbers are print at once at the end. The goal is of

Re: [Haskell-cafe] Performance counters

2009-05-04 Thread Magnus Therning
ldn't it be the kind of thing that'd fit in the GHC runtime? Do you also require that the counters are available to the program itself? (This is starting to sound like something Don mentioned in his talk in London...) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4

Re: [Haskell-cafe] A brief note on n_k patterns and Hackage

2009-05-05 Thread Magnus Therning
On Tue, May 5, 2009 at 1:04 AM, Richard O'Keefe wrote: > I never really understood why it was thought to be relevant, > but I was challenged to show that n+k patterns occurred in > Hackage. Why is it relevant? /M -- Magnus Therning(OpenPGP: 0xAB

Re: [Haskell-cafe] Reply to

2009-05-06 Thread Magnus Therning
mail client on this). What client are you using? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe ___ Haskell-Cafe maili

Re: [Haskell-cafe] Reply to

2009-05-06 Thread Magnus Therning
ling list done wrong", I'd say it's more like slashdot, but without the moderation. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

Re: [Haskell-cafe] beginner question: assigning local variable to a function

2009-05-06 Thread Magnus Therning
Really? For me it's enough to have "in" indented more then "test", and one space is enough: test = let a = (>) in 1 `a` 2 /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://ther

Re: [Haskell-cafe] beginner question: assigning local variable to a function

2009-05-07 Thread Magnus Therning
on AMD64 Linux (Arch). /M On 5/6/09, Magnus Therning wrote: Brandon S. Allbery KF8NH wrote: On May 6, 2009, at 12:18 , Nico Rolle wrote: why does this don't work? test = let a = (>) in 1 `a` 2 Works fine here once I correct your indentation (the "in" needs to be inden

Re: [Haskell-cafe] typeclasses comprehension problems: situation classes?

2009-05-16 Thread Magnus Therning
mply too easy to mis-interpret on a medium with a bandwidth like email.) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Description: OpenP

Re: [Haskell-cafe] the problem of design by negation

2009-05-20 Thread Magnus Therning
ny record of any decisions having been made at all, which to me suggests that no one really thought about the problem at all before implementing a solution. In short, I wouldn't mind seeing a bit more negative attitude in the place where I work :-) /M -- Magnus Therning

Putting unit tests in cabal files (Was Re: [Haskell-cafe] HUnit)

2009-05-21 Thread Magnus Therning
atic package converters such as cabal2arch. Instead I have a makefile for building my test programs. If you have some way of keeping information about building of tests in your .cabal I'd be very interested in seeing it. /M -- Magnus Therning(OpenPGP: 0xAB4DFB

Re: Putting unit tests in cabal files (Was Re: [Haskell-cafe] HUnit)

2009-05-22 Thread Magnus Therning
On Fri, May 22, 2009 at 1:08 PM, Henning Thielemann wrote: > Magnus Therning schrieb: >> On Fri, May 22, 2009 at 12:13 AM, Vasili I. Galchin >> wrote: >>> Hello, >>> >>>     I have some code with several test cases that use HUnit. I added hunit >

[Haskell-cafe] Timing pure functions?

2009-05-27 Thread Magnus Therning
he following 9 times it's not. I suspect that it all comes from `B64.encode d` being pure, hence the encoding happens only once. Now I _really_ want the encoding to happen 10 times, is there some easy way to achieve this? /M [1]: http://hackage.haskell.org/cgi-bin/hackage-scripts/p

Re: [Haskell-cafe] Timing pure functions?

2009-05-27 Thread Magnus Therning
On Wed, May 27, 2009 at 9:59 AM, Andrew Butterfield wrote: > Magnus Therning wrote: >> >>  timeIt times ioa = let >>          timeOnce = do >>              t1 <- getCPUTime >>              a <- ioa >>              t2 <- getCPUTime >

Re: [Haskell-cafe] the problem of design by negation

2009-05-28 Thread Magnus Therning
x27;t as good as others when resource constraints into account. Of course the "negative reasons" must be backed up with data (sometimes rough estimates are enough), but this brings me to other pet peeves of mine at work, the general lack of non-functional requirements and prototypin

Re: [Haskell-cafe] ANN: Anglohaskell 2009

2009-06-02 Thread Magnus Therning
Henk-Jan van Tuyl wrote: On Tue, 02 Jun 2009 23:45:18 +0200, Philippa Cowderoy wrote: Anglohaskell 2009 is go! F.A.B. :) Yes, excellent news, and this time I'll make sure to attend, especially since it's back in Cambridge again. /M -- Magnus Therning

Re: [Haskell-cafe] understanding regex libs

2009-06-04 Thread Magnus Therning
d > regex-pcre-builtin on hackage. Could you clarify ? Once you find out please update the page on the wiki covering the different regular expression libs available for Haskell: http://haskell.org/haskellwiki/Regular_expressions AFAICS it lacks information on portability of the non-native li

Re: [Haskell-cafe] totally confused about Haskell namespace issue conventions

2009-06-07 Thread Magnus Therning
the paths where GHC looks for modules ($x above). /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Description: OpenPGP digital

Re: [Haskell-cafe] ANNOUNCE: StrictBench 0.1 - Benchmarking code through strict evaluation

2009-06-08 Thread Magnus Therning
to be able to perform time measurements on pure code so that it's possible to compare Haskell implementations of algorithms to implementations in other languages, without running into confounding factors.) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.or

Re: [Haskell-cafe] ANNOUNCE: StrictBench 0.1 - Benchmarking code through strict evaluation

2009-06-08 Thread Magnus Therning
On Mon, Jun 8, 2009 at 1:56 PM, Martijn van Steenbergen wrote: > Magnus Therning wrote: >> >> Is there no way to force repeated evaluation of a pure value?  (It'd >> be nice to be able to perform time measurements on pure code so that >> it's possible

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

2009-06-09 Thread Magnus Therning
monad, something like myFunc = do r <- randomRIO (1, 10 if r > 5 then ... else ... /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

Re: [Haskell-cafe] How To Make It Faster?

2009-06-10 Thread Magnus Therning
lines and then words. Only about 10% is spent in arith_expression and 8% in the lambda you pass into forM. I don't have any suggestions for actually speeding it up, but profiling helps in concentrating your efforts. :-) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Magnus Therning
agnus Therning, Neil Mitchell, and byorgey. I consider these users trustworthy. Which of them besides Gwern are willing to take the job? Cool, I'm up for it! /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://th

Re: [Haskell-cafe] Re: Wiki user accounts

2009-06-15 Thread Magnus Therning
simple solution! /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Description: OpenPGP digital signature

[Haskell-cafe] Re: Wiki user accounts

2009-06-15 Thread Magnus Therning
Ashley Yakeley wrote: Magnus Therning wrote: Philippa Cowderoy wrote: On Mon, 2009-06-15 at 13:52 -0400, Gwern Branwen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, Jun 15, 2009 at 1:18 PM, Ashley Yakeley wrote: For requesting accounts: who would receive the email, and

[Haskell-cafe] Re: Wiki user accounts

2009-06-17 Thread Magnus Therning
r them, add your email > address here: > > http://haskell.org/haskellwiki/HaskellWiki:New_accounts I've added my name on that page (and re-arranged it a little). /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.

Re: [Haskell-cafe] Which windowing toolkit to use?

2009-06-17 Thread Magnus Therning
2009/6/17 Alberto G. Corona : > Web - HTML I'd agree with that. It would be really nice for X-platform. Maybe it's possible to use JQuery (or Flapjax) to get some nice dynamic/interacitivity? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus

Re: [Haskell-cafe] Re: Which windowing toolkit to use?

2009-06-17 Thread Magnus Therning
a Windows-only thing. Is the plan to make the heap profiling ship with GHC? In that case it might be ill advised to add a dependency on dot-net/mono. Though it could be argued it's just as ill advised to add a dependency on GTK/WX. /M -- Magnus Therning(OpenPGP

Re: [Haskell-cafe] secure store for passwords on CLIENT side

2009-06-21 Thread Magnus Therning
have the keyring, in KDE you have kwallet For the latter you are likely to have to write your own FFI layer for using any of that from Haskell. I'm sure a nice Haskell x-platform abstraction would be greatly appreciated by the community ;-) Hope it helps. /M -- Magnus The

Re: [Haskell-cafe] coding standard question

2009-06-21 Thread Magnus Therning
pass '-Wall -Werror' to ghc to force myself to do this :-) Also from experience, I get a good feeling about software that compiles without warnings. It suggests the author cares and is indicative of some level of quality. /M -- Magnus Therning(OpenPGP:

Re: [Haskell-cafe] Half-integer

2009-06-28 Thread Magnus Therning
mean they won't become useful in the future, and it certainly doesn't mean that someone else won't find them useful right now. :-) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magn

[Haskell-cafe] Proper arrival of platform?

2009-06-29 Thread Magnus Therning
When will the Haskell Platform arrive properly? With that I mean, when will GHC stop shipping with a set of base libraries (e.g. network)? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

Re: [Haskell-cafe] Proper arrival of platform?

2009-06-29 Thread Magnus Therning
s I'm concerned :-) Yes, today I've been battling bad interactions dependencies among installed packages... all caused by my eagerness to install the Haskell Platform package for Arch... :-( /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org

Re: [Haskell-cafe] How to declare a Typeless Function

2009-07-03 Thread Magnus Therning
t; http://www.fernski.com >> ___ >> Haskell-Cafe mailing list >> Haskell-Cafe@haskell.org >> http://www.haskell.org/mailman/listinfo/haskell-cafe >> > ___ > Haskell-Cafe mailing list > Haske

Re: [Haskell-cafe] Re: Haskell Platform on Ubuntu

2009-07-08 Thread Magnus Therning
ell for _users_ of applications written in Haskell. The introduction of dynamic linking will mean that those applications need the pre-built libraries they depend on. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org ht

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread Magnus Therning
ht be useful if you informed us _where_ the characters are mangled. Is it when you view it in a browser, or when you open the Haddock-generated HTML files in a text editor? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org h

Re: [Haskell-cafe] Re: Adding an ignore function to Control.Monad

2009-07-12 Thread Magnus Therning
n what languages you are familiar with, of course. To me void is a type (C/C++) while ignore is a function (OCaml) ;-) /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus ident

Re: [Haskell-cafe] What to say about Haskell?

2009-07-14 Thread Magnus Therning
of elegant > programs that are only possible because of lazyness :) I'd add type-classes to that. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe _

Re: [Haskell-cafe] What to say about Haskell?

2009-07-14 Thread Magnus Therning
rom the technological features I mentioned above: > they are in the language for a purpose. > > My 2 cents. And maybe adding that Haskell seems to make it easy to concentrate on data flow rather than control flow. /M -- Magnus Therning(OpenPGP: 0xAB4DFB

Re: [Haskell-cafe] Build 32-bit apps on 64-bit Windows?

2009-07-15 Thread Magnus Therning
ersion of GHC to be downloaded out there. You might be able to install both a 64-bit and 32-bit GHC compiler on the same system though. Personally I use virtualisation for all my 32-bit needs nowadays. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org

Re: [Haskell-cafe] Debugging methods for haskell

2009-07-16 Thread Magnus Therning
needle: Stack Traces for GHC" >                 > http://pubs.doc.ic.ac.uk/finding-the-needle/finding-the-needle.pdf Another option would be to use Safe.atMay[1] instead of !!. [1]: http://hackage.haskell.org/packages/archive/safe/0.2/doc/html/Safe.html#v%3Aat -- Magnus Therning

Re: [Haskell-cafe] Hackage and version control

2009-07-20 Thread Magnus Therning
of having a Darcs repo on community.haskell.org. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe ___ Haskell-Cafe mai

Re: [Haskell-cafe] Re: cheap in-repo local branches (just needs implementation)

2009-07-22 Thread Magnus Therning
ing without overwhelming him. > > I went from nothing to using git, and I sincerely don't know what's > overwhelming about repo branching. You just need to work with more clue-less people. It'll do _your_ head in trying to understand why they fai

Re: [Haskell-cafe] Re: Thinking about what's missing in our library coverage

2009-08-04 Thread Magnus Therning
users at this step. This is a good point, but to some extent this brings us back to a discussion that's specific to systems with broken or non-existing package managers. Wouldn't it be better to deal with _that_ outside of HP? /M -- Magnus Therning(OpenPGP

Re: [Haskell-cafe] Re: Thinking about what's missing in our library coverage

2009-08-04 Thread Magnus Therning
Max Rabkin wrote: On Tue, Aug 4, 2009 at 6:13 PM, Magnus Therning wrote: AFAIU the plan is to separate GHC and its "platform packages", so in the future it might not be that easy to get to the point where you _can_ run 'cabal install'. Absolutely not. The point of HP is t

Re: [Haskell-cafe] Re: Thinking about what's missing in our library coverage

2009-08-05 Thread Magnus Therning
On Tue, Aug 4, 2009 at 11:05 PM, Max Rabkin wrote: > On Tue, Aug 4, 2009 at 11:56 PM, Magnus Therning wrote: >>> >>> AIUI, on systems with working package managers, HP will be a >>> metapackage which depends on the appropriate "real" packages. >> >

Re: Re[2]: [Haskell-cafe] Re: Thinking about what's missing in our library coverage

2009-08-05 Thread Magnus Therning
ll library goes into HP or not. Cabal is great for source distribution, but apparently there's a need for a binary packager, especially for Windows. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Magnus Therning
something more informative. Alternatively, add an informative > link to the login page[2] and clear the site notice. If you click the link ("new account creation") you will be lead to the information about how to get an account. Perhaps not the best way to lead people to that info, but

Re: [Haskell-cafe] Cleaner networking API - network-fancy

2009-08-13 Thread Magnus Therning
sense? > * Any other suggestions? There is already a getHostName in Network.BSD, any reason for not using it? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magth

Re: [Haskell-cafe] ANN: Haddock version 2.5.0

2009-08-15 Thread Magnus Therning
sion 2.5.0 * Drop support for GHC 6.8.* * Add support for GHC 6.10.3 and 6.10.4 Hmm, does this mean that GHC 6.10.4 ships with a version of Haddock that doesn't handle the compiler it ships with? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magn

Re: [Haskell-cafe] Can't install Haskell Platform on 64-bit Linux

2009-08-18 Thread Magnus Therning
uggest getting it from your distro's repo rather than downloading the tar-ball. That way you avoid satisfying dependencies manually. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

Re: [Haskell-cafe] Re: [Haskell-beginners] Start file with associated prog (windows only?)

2009-08-18 Thread Magnus Therning
MIME database (which is separate from /etc/mailcap) you can use 'xdg-mime'. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Descript

Re: [Haskell-cafe] Re: Is logBase right?

2009-08-23 Thread Magnus Therning
1000 :: Double 2.9996 > logBase 10 1000 :: Float 3.0 Welcome the wonderful land of floating point numbers. (The examples above are from an Intel 32-bit machine, I suspect it'd change on any other type of architecture.) /M -- Magnus Therning(Open

Re: [Haskell-cafe] Help starting a Haskell blog

2009-08-23 Thread Magnus Therning
BTW: I'm on Windows. Wordpress with wp-syntax works fine for me. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe _

[Haskell-cafe] hslogger and syslog-ng

2009-08-23 Thread Magnus Therning
rningM "bar" "test" *** Exception: sendTo: protocol error (Protocol wrong type for socket) What could be the cause for this? I've tried hsyslog and it reports to my instance of syslog without problems. My system is a 32-bit Arch Linux, running syslog-ng 3.0.3. /M -- Magnus Th

Re: [Haskell-cafe] hslogger and syslog-ng

2009-08-23 Thread Magnus Therning
Brandon S. Allbery KF8NH wrote: On Aug 23, 2009, at 09:41 , Magnus Therning wrote: I'm having some problem with logging to syslog using System.Log.Logger and friends. I have the following: :m +System.Log.Logger :m +System.Log.Handler.Syslog sl <- openlog "foo"

Re: [Haskell-cafe] hslogger and syslog-ng

2009-08-23 Thread Magnus Therning
ocket) Hm. hslogger uses a hardcoded 0 instead of PF_UNSPEC (not that Network.BSD exports PF_*, and it too hardcodes defaultProtocol as 0) but a spot check of system under my control suggests it should work most places. What kind of systems to you have under your control? /M -- Magnus

Re: [Haskell-cafe] hslogger and syslog-ng

2009-08-23 Thread Magnus Therning
Brandon S. Allbery KF8NH wrote: On Aug 23, 2009, at 14:05 , Magnus Therning wrote: Brandon S. Allbery KF8NH wrote: Oh, though logging to a dgram socket doesn't seem to work either. I added the following line to /etc/syslog-ng.conf: unix-dgram("/dev/dlog"); Restarted it and c

[Haskell-cafe] Re: Question about haskell.cs.yale.edu/

2009-09-17 Thread Magnus Therning
des users with live traffic information and gets > updated every 3 minutes using various road sensors. > > Thank you for your consideration. > > Kind Regards, > Peter > http://www.frixo.com > > -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@

Re: [Haskell-cafe] algebra/grammar/language for expressing time intervals

2009-09-17 Thread Magnus Therning
Iain Alexander wrote: You might want to take a look at RFC 2445 Internet Calendaring and Scheduling Core Object Specification Section 4.8.5.4 Recurrence Rule Another source of inspiration might be the syntax used in remind[1]. /M [1]: http://www.roaringpenguin.com/products/remind -- Magnus

[Haskell-cafe] Haskell and GnuPG?

2007-07-10 Thread Magnus Therning
Continuing my "life up-side-down"¹ I'm looking for a Haskell wrapper around GPGME. Is there such a beast? /M ¹) That's the life where I turn to Haskell before turning to Python. -- Magnus Therning (OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED]

Signature [Was: [Haskell-cafe] Lazy Lists and IO]

2007-07-12 Thread Magnus Therning
Totally off-topic. I'm just curious. On Wed, Jul 11, 2007 at 22:49:58 +0200, Chaddaï Fouché wrote: [..] >Jedaï Chaddaï, I just noticed you sign your emails with "Jedaï". Being the curious person I am I wonder, why? /M -- Magnus Therning (O

Re: [Haskell-cafe] Maintaining the community

2007-07-13 Thread Magnus Therning
to me, how to do that with this list though. Personally I try to read the first post in every conversation thread. If it doesn't grab be then I delete the whole thread. Not an ideal strategy, but it helps me keeping my day job ;-) /M -- Magnus Therning (OpenP

Re: [Haskell-cafe] Maintaining the community

2007-07-17 Thread Magnus Therning
e ugrad level, and what do I know >about Java, other that it'd be quite a nice place to have a holiday >some time :) My wife is from Java so if you need some advice on good vacation spots I'd be happy to ask her advice ;-) /M -- Magnus Therning (

[Haskell-cafe] c2hs and structs?

2007-08-04 Thread Magnus Therning
e adhere to the type Storable.) /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] http://therning.org/magnus Unreadable code, Why would anyone use it? Learn a better way. -- Geoff Kuenning's contribution to th

[Haskell-cafe] Praise for xmonad :-)

2007-09-27 Thread Magnus Therning
Seems xmonad is feeling the love. The attached mail turned up on the debian-user mailing list. It's high time xmonad gets packaged for Debian! /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com

[Haskell-cafe] Hosting of Haskell project

2007-10-10 Thread Magnus Therning
-( I could also not locate any option for publishing haddock pages. :-( Have I missed anything? /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/magnus The British have "the

Re: [Haskell-cafe] Filesystem questions

2007-10-13 Thread Magnus Therning
.) Very embarrassing that Haskell >is missing this. > >How about a built-in function that represents a directory tree >as a lazy Data.Tree? http://therning.org/magnus/index.php?tag=haskell&paged=3 Not really what you're looking for, but hopefully it's a good place to start

Re: [Haskell-cafe] Hosting of Haskell project

2007-10-14 Thread Magnus Therning
up darcs+trac+lighttpd on Debian and by now I fear I've forgotten how I did it... I remember it being remarkably easy though. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/mag

  1   2   3   4   5   >