Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-09-15 Thread Joel Burget
, Sep 14, 2012 at 10:08 PM, Joel Burget joelbur...@gmail.com (mailto:joelbur...@gmail.com) wrote: [snip] Also, Maybe and Either are not implemented as monads. They are defined using `data` like you suggest: data Maybe a = Nothing | Just a data Either a b = Left a | Right b

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-09-14 Thread Joel Burget
I find the Monad instance for Maybe and Either very useful. You can do things like the following (which technically only uses the Applicative instance): Prelude Control.Applicative (*3) $ (+2) $ Just 1 Just 9 Prelude Control.Applicative (*3) $ (+2) $ Nothing Nothing Prelude Control.Applicative

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-28 Thread Joel Burget
There was a typo in the link, here's the corrected version http://www.cs.dartmouth.edu/~doug/powser.html - Joel ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANNOUNCE: taffybar: an alternative status bar for xmonad

2011-08-13 Thread Joel Burget
This sounds really intriguing. Since I'm temporarily not using xmonad, and I'm sure others would like to see as well, could we get a screenshot? - Joel ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Assimp FFI Library

2011-04-12 Thread Joel Burget
, | represents a vector, and represents a scalar. Also, I currently have a macro for the three sizes of vector and the three sizes of matrix. I'm not going to mess around with it for now. -Joel On Tue, Apr 12, 2011 at 9:14 AM, John Lato jwl...@gmail.com wrote: From: Joel Burget joelbur...@gmail.com

[Haskell-cafe] Assimp FFI Library

2011-04-11 Thread Joel Burget
Hello, I've been working on an ffi library for the Assimp asset import library( http://assimp.sourceforge.net). It should be useful for people doing graphics in Haskell. I've been working on it so I can import models into a ray-tracer I've been working on. My current progress is here: