Re: [Haskell-cafe] Newbie type question for wxHaskell learner

2011-01-07 Thread b1g3ar5
Yes you're right I had brackets wrong (and the 'where' version is easier to read), thanks. I think the where style works best - or maybe flip and a dangling \x- >. I maybe slow but I'm learning. N On Jan 7, 7:21 pm, Daniel Fischer wrote: > On Friday 07 January 20

Re: [Haskell-cafe] Newbie type question for wxHaskell learner

2011-01-07 Thread b1g3ar5
te: > On Friday 07 January 2011 19:01:43, b1g3ar5 wrote: > > > > > > > > > > > Thanks for your reply but it doesn't quite solve the problem. This: > > > plist <- mapM (\x-> (panel nb [])) my_list > > > returns [Panel()] and works as you

Re: [Haskell-cafe] Newbie type question for wxHaskell learner

2011-01-07 Thread b1g3ar5
a neat way of doing this. N On Jan 7, 4:21 pm, Daniel Fischer wrote: > On Friday 07 January 2011 17:09:11, b1g3ar5 wrote: > > > I've tried to solve this but I am failing. > > > I can do this: > > > p0<-panel nb [] > > e0<-textCtrl p [text:=my_list!!

[Haskell-cafe] Newbie type question for wxHaskell learner

2011-01-07 Thread b1g3ar5
I've tried to solve this but I am failing. I can do this: p0<-panel nb [] e0<-textCtrl p [text:=my_list!!0] but I want to do this on all of my_list, so I tried: let es = map (\x-> textCtrl (panel nb []) [text:=x]) my_list Now, this won't work because the panel nb [] is IO (Panel()) and the par

[Haskell-cafe] Re: Haskell list on Twitter?

2010-10-01 Thread b1g3ar5
I have a list of people not on their own list. I can't decide whether I should be on it or not. On Oct 1, 6:38 pm, Daniel Peebles wrote: > I try to keep my list up to date with new haskellers I find on twitter, and > it should include everyone on the haskell wiki list. Yes, it contains me, > to

[Haskell-cafe] Re: Newcomers question

2009-11-01 Thread b1g3ar5
. I don't think anybody likes this, but I think we're > stuck with it for the foreseeable future. > > > > On Sat, Oct 31, 2009 at 7:31 PM, b1g3ar5 wrote: > > I'm trying: > > > instance Num b => Num (a -> b) where > > fromInteger = pure .

[Haskell-cafe] Newcomers question

2009-10-31 Thread b1g3ar5
I'm trying: instance Num b => Num (a -> b) where fromInteger = pure . Prelude.fromInteger negate = fmap Prelude.negate (+) = liftA2 (Prelude.+) (*) = liftA2 (Prelude.*) abs = fmap Prelude.abs signum = fmap Prelude.signum but the compiler rejects it with: src\Main.hs:24:9: Could not deduce (S

[Haskell-cafe] Stupid error, probably

2009-10-12 Thread b1g3ar5
I can't get the following to work in Leksah - but it works OK in GHC. Can anyone spot the error? I wondered if it was becasue the libraries loaded are different - but I'm just a Haskell beginner ... I have: myGroupBy :: Int→ [a]→ [[a]] myGroupBy = takeWhile not . null . (unfoldr (Just . (split