WingNews logo WingNews
top | new | best | ask | show | jobs | submit
GitHub [2]
top | item 4844813

RethinkDB's first community client driver is for Haskell

15 points| mglukhovsky | 13 years ago |rethinkdb.com | reply

1 comment

order
[+] [-] atnnn|13 years ago|reply
> The next step is to make this a monad!

It already is! Each expression is a simple wrapper around a monad, similar to this datatype:

data Expr = Expr (QueryM Term)

Where QueryM is the monad that helps build the query and Term is the raw protobuf expression that gets sent to the server.

powered by hn/api // news.ycombinator.com