[Haskell-cafe] Re: ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-12 Thread yair...@gmail.com
On Feb 12, 4:22 am, Simon Michael wrote: > Exciting! But on a mac, I can't get the window to become focussed or accept > input. Tips ? Tips: $ cabal install mkbndl $ cd ~/.cabal/bin $ mkbndl dow $ open Dow.app Ok, but you need to click the right control key to select stuff on the menu, and you

[Haskell-cafe] Re: Generalizing takeWhile

2009-07-23 Thread yair...@gmail.com
On Jul 22, 7:44 pm, Felipe Lessa wrote: > > type TypeOfF a = a -> Maybe (TypeOfF' a) > > newtype TypeOfF' a = F {unF :: TypeOfF a} An interesting observation is that "ListT ((->) a) ()" would also do the job. If one would want to also generalize "filter" this way, a more appropriate type would be

[Haskell-cafe] ANN: ListTree 0.1

2009-09-27 Thread yair...@gmail.com
Hi, I am pleased to announce the release of ListTree. ListTree is a package for combinatorial search and pruning of trees, and should be useful for problems such as those in Google Code Jam (where I, and possibly others* could make use of it), but possibly could even be useful for real applications

[Haskell-cafe] Re: ANN: ListTree 0.1

2009-09-28 Thread yair...@gmail.com
g functions which are aware of their pruning methods. cheers, Yair On Sep 27, 9:35 pm, wren ng thornton wrote: > yair...@gmail.com wrote: > > Hi, > > I am pleased to announce the release of ListTree. > > ListTree is a package for combinatorial search and pruning of trees, >

[Haskell-cafe] Re: (possibly) a list comprehensions question

2009-11-19 Thread yair...@gmail.com
> This is what happens all the time, the thing I am trying to implement is already in the library! You can easily find those library functions using Hoogle. In this case Hoogle gives the "sequence" function as its second result for the query "[[a]] -> [[a]]": Data.List transpose :: [[a]] -> [[a]]

[Haskell-cafe] Re: Implicit newtype unwrapping

2009-12-03 Thread yair...@gmail.com
> I guess TH could probably do this. I think this does what you wish for: http://hackage.haskell.org/packages/archive/peakachu/0.2/doc/html/Data-Newtype.html Example: > $(mkWithNewtypeFuncs [2] ''ZipList) > withZipList2 (<*>) [(+3), (*3)] [6, 7] [9, 21] > $(mkInNewtypeFuncs [2] ''ZipList) > getZi

[Haskell-cafe] A numpy equivalent for Haskell

2010-01-18 Thread yair...@gmail.com
Hi Cafe, I've created a numpy equivalent for Haskell. (Numpy is a python library for multi-dimensional arrays and operations on them) Code at http://github.com/yairchu/numkell (not yet on hackage because it needs better names) A numkell array is a pair of a function from integer inputs and a ran