, 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
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
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
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
, | 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
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: