Re: [Haskell-cafe] Are there any gay haskelleres?

2010-03-28 Thread Fraser Wilson
I'm sure there's some theory about fags being unable to use tools and stuff. It certainly cannot be anything to do with cultural pressure. Perhaps it is easy to mistake a male-dominated field for one that males are intrinsically good at, but really, have a look at the Y chromosome, it does

Re: [Haskell-cafe] Re: Are there any gay haskelleres?

2010-03-28 Thread Fraser Wilson
I suppose it's easy to miss the underlying sexism when you aren't affected by it. 2010/3/28 Günther Schmidt gue.schm...@web.de Hi guys, judging by the responses so far it seems that the gay haskellers have more balls than the female haskellers to come out of the closet. Uhm. Günther

Re: [Haskell-cafe] Language simplicity

2010-01-13 Thread Fraser Wilson
On Tue, Jan 12, 2010 at 11:26 PM, Daniel Fischer daniel.is.fisc...@web.dewrote: Okay, 'as' is easy. But can you find a situation where 'qualified' or 'hiding' would be natural choices for an identifier? I'd love to see those in some code :) module LordsOfMidnight.Character(Character) where

[Haskell-cafe] Re: grapefruit Grapefruit infrastructure

2009-02-26 Thread Fraser Wilson
I'm Switzerland on open source licenses -- I use GPL3 on everything I write, because I like the default position, but I'm always happy to relicense on request (except maybe to companies like Fluffy Bunny Killer, Inc). My sister tells me I'm a control freak, and maybe I am :-) So BSD is just

Re: [Haskell-cafe] Functional GUIs again

2009-02-17 Thread Fraser Wilson
know. On Tue, Feb 17, 2009 at 12:51 AM, Fraser Wilson blancoli...@gmail.comwrote: Hi Peter, Thanks! I haven't tried to compile with 0.10.0 but I can guess that the errors arise from the use of ListStore. I'm not sure what the best approach is here. Is 0.9.13 over now? If so, then I'll

Re: [Haskell-cafe] Re: Low-level high-level languages?

2009-02-16 Thread Fraser Wilson
What was that stripped-down low-level version of C I saw coming out of ... was it Microsoft Research? C-- or something. Unfortunately, the name appears to be immune to Googling. 2009/2/16 Alberto G. Corona agocor...@gmail.com http://www.ats-lang.org/ 2009/2/16 Jon Fairbairn

Re: [Haskell-cafe] ANN: The Typeclassopedia, and request for feedback

2009-02-16 Thread Fraser Wilson
Super! Also, best definition of bottom I've yet seen -- ignoring _|_, which is a party pooper. Like good code, it's short, to the point, and obviously correct. Thanks for this. It's great to have it all in one place, and so entertainingly presented. cheers, Fraser. On Mon, Feb 16, 2009 at

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: first Grapefruit release

2009-02-16 Thread Fraser Wilson
Montag, 16. Februar 2009 18:05 schrieb Fraser Wilson: I'd love to hack on Grapefruit. That’s great! I'll do some study (and take a break from my own world-changing functional GUI :-) I tried to check out your repository at http://thewhitelion.org/darcs/barrie/ but darcs get failed

[Haskell-cafe] Functional GUIs again

2009-02-16 Thread Fraser Wilson
Since I'm congenitally lazy, and writing a GUI by hand in the IO monad is ... not what I expect from a beautiful program, and because what I often need is a GUI that manipulates a state, and because I don't understand arrows, and having been intrigued by a recent cafe thread, I threw together a

Re: [Haskell-cafe] Functional GUIs again

2009-02-16 Thread Fraser Wilson
You must have missed the bit about congenitally lazy :-) Username requested ... cheers, Fraser. On Mon, Feb 16, 2009 at 8:10 PM, Lennart Augustsson lenn...@augustsson.netwrote: Put it on hackage! 2009/2/16 Fraser Wilson blancoli...@gmail.com: Since I'm congenitally lazy, and writing

Re: [Haskell-cafe] Functional GUIs again

2009-02-16 Thread Fraser Wilson
, Show, Monoid) Also, put it on hackage! :) It looks pretty cool. -- ryan 2009/2/16 Fraser Wilson blancoli...@gmail.com: Since I'm congenitally lazy, and writing a GUI by hand in the IO monad is ... not what I expect from a beautiful program, and because what I often need is a GUI

Re: [Haskell-cafe] Functional GUIs again

2009-02-16 Thread Fraser Wilson
was. And now I see them all over the place, and I'm a better person for it. Surely this is too much to be considered actual programming! cheers, Fraser. On Mon, Feb 16, 2009 at 10:40 PM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: On Mon, 2009-02-16 at 20:30 +0100, Fraser Wilson wrote: You must

Re: [Haskell-cafe] Functional GUIs again

2009-02-16 Thread Fraser Wilson
. Cheers, Peter 2009/2/16 Fraser Wilson blancoli...@gmail.com Now that I re-read my email, it looks like I'm saying Username requested in the sense of OK, Cafe people, treat this as a user name request and step to it. What I meant was that I have requested a username (via the email

Re: [Haskell-cafe] The wheather is ⊥

2009-02-15 Thread Fraser Wilson
Is that really cold or really hot? On Sun, Feb 15, 2009 at 11:27 PM, Henk-Jan van Tuyl hjgt...@chello.nlwrote: The temperature is now NaN°: http://traviswalters.net/?p=58 -- Met vriendelijke groet, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ --

Re: [Haskell-cafe] Why binding to existing widget toolkits doesn't make any sense

2009-02-03 Thread Fraser Wilson
You know, I read the Fudgets thesis, and threw together an experiment which used Glade for layout and Haskell for semantics [1]. As somebody else noted, this isn't really a clean division, because of things like editable flags in the layout. The darcs repository has a couple of demo

Re: [Haskell-cafe] How to define Show [MyType] ?

2008-12-07 Thread Fraser Wilson
1) They come from the show instance for String. Try putStrLn (t2 fleet) instead. pedant The show instance for Char. /pedant (I know you know this, I just have this weird fascination with the showList wart, although for the life of me I can't think of a better way of doing it) cheers,

[Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
Hi all, Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself. [EMAIL PROTECTED] audley]$

Re: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
. The unconfined_u looks suspicious. cheers, Fraser. On Tue, Dec 2, 2008 at 3:48 PM, David Leimbach [EMAIL PROTECTED] wrote: Did you try turning off SELinux to check? 2008/12/2 Fraser Wilson [EMAIL PROTECTED] Hi all, Has anybody seen this? I thought it might be an SELinux thing

Re: Re[2]: [Haskell-cafe] GHC on Fedora 10 - getMBlock: mmap: Permission denied

2008-12-02 Thread Fraser Wilson
? 2008/12/2 Fraser Wilson [EMAIL PROTECTED] Hi all, Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Fraser Wilson
I had a proof of concept lying around a couple of years ago in which a big complicated Ada program called a big complicated Haskell program and vice versa. The tricky bit from memory was making it link, and satisfying their rumtime initialisation requirements. No explicit C was required

Re: [Haskell-cafe] if - then - else layout

2008-09-24 Thread Fraser Wilson
I think you mean in a do. There is a proposal to fix this in Haskell' cheers, Fraser On Sep 25, 2008, at 6:59, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On 2008 Sep 25, at 0:47, leledumbo wrote: consider this partial program: if n5 then putStrLn big else putStrLn small this works

[Haskell-cafe] Confused by instances

2008-04-28 Thread Fraser Wilson
Hello, Haskellers, I feel like I'm missing something obvious, but here's some example code: module Instance where data Value = Value Integer class ValueClass a where fromValue :: Value - a instance ValueClass Bool where fromValue (Value n) = n /= 0 instance ValueClass String

Re: [Haskell-cafe] Confused by instances

2008-04-28 Thread Fraser Wilson
On Mon, Apr 28, 2008 at 10:50 PM, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: The format is instance [context =] classname instance. Your classname is ValueClass. Your instance is a. a is not of the form (T a1 ... an). But neither is instance (Show a) = Show [a] ... *sound of

Re: [Haskell-cafe] Confused by instances

2008-04-28 Thread Fraser Wilson
On Mon, Apr 28, 2008 at 11:33 PM, Luke Palmer [EMAIL PROTECTED] wrote: To answer your other question, no, there is no list show hack. Perhaps hack was a strong word. I'm not referring to type synonyms, but to the fact that Prelude's show class happens to have a special show function for

Re: [Haskell-cafe] Confused by instances

2008-04-28 Thread Fraser Wilson
On Mon, Apr 28, 2008 at 11:46 PM, Luke Palmer [EMAIL PROTECTED] wrote: 2008/4/28 Fraser Wilson [EMAIL PROTECTED]: what I am trying to say is if a is an instance of Num, then can be an instance of ValueClass too, and here's how. Oh, didn't answer this one. This is almost canned response

Re: [Haskell-cafe] export question (GHC.Handle)

2008-04-17 Thread Fraser Wilson
On Thu, Apr 17, 2008 at 4:46 PM, Bertram Felgenhauer [EMAIL PROTECTED] wrote: Assuming you're writing a cabal package, you could separate the interface from the actual implementation: [..] HTH, Magic. Thanks a lot! cheers, Fraser. ___

Re: [Haskell-cafe] export question (GHC.Handle)

2008-04-16 Thread Fraser Wilson
On Thu, Apr 17, 2008 at 2:09 AM, Graham Fawcett [EMAIL PROTECTED] wrote: I notice in the source for GHC.Handle that certain functions (e.g. fdToHandle_stat) are in the export list, but are not actually exported (at least, it seems you cannot import them). What mechanism causes these functions

Re: [Haskell-cafe] Dynamic typing makes you more productive?

2008-03-18 Thread Fraser Wilson
I find it interesting that change is equated with maintenance. I would say that maintenance is a very small subset of change. It's true that you can change a program in a dynamically typed language more easily, in the same way that changes are easier to make if you don't use source control and

Re: [Haskell-cafe] Binary IO of a list of ints

2008-01-24 Thread Fraser Wilson
(untested) mapM_ runPut data ? On Jan 24, 2008 12:14 PM, Jamie Love [EMAIL PROTECTED] wrote: Hi there I have a list of ints, with values between 0 and 255 and I need to print them out in little endian form to a file. I've been using Data.Binary for single values, e.g. runPut $ do

Re: [Haskell-cafe] Trouble with function with two clauses

2008-01-09 Thread Fraser Wilson
In head'', what is being compared to Nil? The guards of a function are a series of Boolean expressions; but in your example they are of type ConsCell a. The difference is that in a pattern, the structure of the argument is matched; in a guard, an arbitrary expression is evaluated. I have always

Re: [Haskell-cafe] Filesystem access

2007-06-21 Thread Fraser Wilson
I don't use Haskell on Windows, but if you go to http://www.haskell.org/ghc/docs/latest/html/libraries/index.html you'll find a package called System.Win32.File, which has these functions: *getFileAttributes* ::

Re: [Haskell-cafe] Records (was Re: [Haskell] Improvements to GHC)

2005-11-17 Thread Fraser Wilson
On 11/17/05, Greg Woodhouse [EMAIL PROTECTED] wrote: Isn't there a potential for confusion with function composition (f . g)? Perhaps, but I always have spaces on either side when it's function composition. Isn't there already an ambiguity? -- I bet there's a quicker way to do this ... module M

Re: [Haskell-cafe] Families of type classes

2005-11-06 Thread Fraser Wilson
On 11/6/05, Klaus Ostermann [EMAIL PROTECTED] wrote: instance Node Person where isConnectedTo g n (p1,p2) = (p1 == n) || (p2 == n) At this point, isConnectedTo knows nothing about the third argument except that it is an edge, and there's no reason to think that an Edge is a tuple. All you can say

[Haskell-cafe] Interactive Haskell and hs-plugins

2005-11-01 Thread Fraser Wilson
Hi there, I would like to use evaluate arbitrary expressions in the context of a mixed-language (Ada, Haskell and about twelve lines of C glue) applications. Is it possible to use dynload from hs-plugins to load a module that references symbols in the loading program? For example, the