[Haskell-cafe] ANN (2 Libs) -- hvac 0.1b, a lightweight web framework and HStringTemplate 0.3

2008-03-23 Thread Sterling Clover
1) hvac 0.1b: transactional, declarative framework for lightweight web applications. 2) HStringTemplate 0.3 1) hvac 0.1b hvac (short for http view and controller) has been my project for the last little while, and is finally in a fairly usable state, so I'm opening up the repo (darcs get

Re: [Haskell-cafe] compile error with FFI code

2008-03-23 Thread John Meacham
On Fri, Mar 21, 2008 at 11:21:26PM -0500, Galchin Vasili wrote: In my blah.hsc, I have allocbytes (#const (struct bozo)) .. where you probably meant allocBytes (#const sizeof(struct bozo)) John -- John Meacham - ⑆repetae.net⑆john⑈ ___

Re: [Haskell-cafe] ANNOUNCE: wxHaskell 0.10.3 rc1

2008-03-23 Thread Marc Weber
On Sat, Mar 22, 2008 at 08:48:20PM +0100, Peter Verswyvelen wrote: Amazing, I downloaded and installed this release for Windows and it works out of the box, just as a lazy Windows user expects! Woohoo! Great work. I've had this success adding wxhaskell to nixos using the new distribution as

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 55, Issue 30

2008-03-23 Thread Deng Chao
Hi Sebastian Sylvan, Thank you very much! I thick the last column return a string because of the Haskell Show function, for when I made test, I got such an error message: Show ([SqlValue] - IO [[SqlValue]]). Any way, thank you very much! Deng Chao 在 2008-03-22六的 13:55 [EMAIL PROTECTED] Send

Re: [Haskell-cafe] Type constraints for class instances

2008-03-23 Thread Krzysztof Skrzętnicki
I fixed the code, see below. In fact, it works now for any listst of type (YOrd a) = [a]. It works for things like ysort [[1..],[1..],[2..],[1..]] Unfortunately, the performance of ysort is rather low. I belive that it is impossible to create any sorting algorithm that uses ycmp instead of

Re: [Haskell-cafe] ANN (2 Libs) -- hvac 0.1b, a lightweight web framework and HStringTemplate 0.3

2008-03-23 Thread John Melesky
On Mar 23, 2008, at 1:21 AM, Sterling Clover wrote: 1) hvac 0.1b: transactional, declarative framework for lightweight web applications. 2) HStringTemplate 0.3 Excellent! Thanks for these. -johnnn ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] doctest for haskell -- a good project?

2008-03-23 Thread Marc Weber
Hi Shaun, I've read the whole thread till now. If you only look at the testing side Cabal is a possible target to run your tests. (I think you've already met it?) Adding documentation ficilities to ghci is nice, however my experience is that documentation is not complete everywhere. That's why

Re: [Haskell-cafe] HXT and types in Control.Arrow.ArrowTree

2008-03-23 Thread Albert Y. C. Lai
Robert Vollmert wrote: In short, I'm constantly running into what appear to be artificial type restrictions in Control.Arrow.ArrowTree. For example, the signature of deep is deep :: (Tree t, ArrowTree a) = a (t b) (t b) - a (t b) (t b) instead of the more general deep :: (Tree t, ArrowTree

[Haskell-cafe] hoisting as well as lifting and returning

2008-03-23 Thread Matthew Pocock
Hi, Happy Easter! I've been using monad transformers for the first time in anger this week. They certainly do the job. However, there's an operation that I keep defining over and over again. It is sort of like lift and return in that it's glue to get operations and values into the monad from

Re: [Haskell-cafe] doctest for haskell -- a good project?

2008-03-23 Thread Arnar Birgisson
On Sun, Mar 23, 2008 at 5:09 PM, Marc Weber [EMAIL PROTECTED] wrote: Adding documentation ficilities to ghci is nice, however my experience is that documentation is not complete everywhere. That's why I'm looking at source code directly (thus having doc strings if given else I can have

Re: [Haskell-cafe] hoisting as well as lifting and returning

2008-03-23 Thread Yitzchak Gale
Matthew Pocock wrote: I've been using monad transformers for the first time in anger this week. I hope your enjoyment in using monads has helped your anger to subside. :) ...there's an operation that I keep defining over and over again... hoistList :: (Monad m) = [a] - ListT m a

Re: [Haskell-cafe] Type checking of partial programs

2008-03-23 Thread ac
So a number of people responded with various ways this is already possible. Of course GHC can already do this... it's type inference. The part I'm interested in working on is exposing the functionality in GHC's API to make this as easy as possible. -Abram

Re: [Haskell-cafe] hoisting as well as lifting and returning

2008-03-23 Thread Matthew Pocock
Hi Yitz, I was thinking along the lines of a class linking the monad transformer with the base monad: class (MonadTrans mt, Monad b) = MonadTForm mt b | mt - b where hoist :: (Monad m) = b a - mt m a This is to restrict it directly between the base monad and the transformed version. If

[Haskell-cafe] Terminating GLUT/GLFW programs

2008-03-23 Thread hjgtuyl
L.S., I am trying GLUT and GLFW (on Windows XP, with GHC 6.8.2); the sample programs do not terminate when I close the window by clicking on the cross in the upper right corner of the window. The sample program for GLUT is at

[Haskell-cafe] more on FFI build error

2008-03-23 Thread Galchin Vasili
line #102 ... allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs - do definition of struct mq_attr on Linux ... struct mq_attr { long int mq_flags;/* Message queue flags. */ long int mq_maxmsg; /* Maximum number of messages. */ long int mq_msgsize; /* Maximum message

Re: [Haskell-cafe] Equality constraints in type families

2008-03-23 Thread Manuel M T Chakravarty
Claus Reinke: type family F a :: * - * .. We made the design choice that type functions with a higher-kinded result type must be injective with respect to the additional paramters. I.e. in your case: F x y ~ F u v = F x ~ F u /\ y ~ v i'm still trying to understand this remark: - if we

Re: [Haskell-cafe] Equality constraints in type families

2008-03-23 Thread Manuel M T Chakravarty
Tom Schrijvers: could you please help me to clear up this confusion?-) Let me summarize :-) The current design for type functions with result kinds other than * (e.g. * - *) has not gotten very far yet. We are currently stabilizing the ordinary * type functions, and writing the story up.

Re: [Haskell-cafe] Equality constraints in type families

2008-03-23 Thread Manuel M T Chakravarty
Claus Reinke: type family F a :: * - * .. We made the design choice that type functions with a higher-kinded result type must be injective with respect to the additional paramters. I.e. in your case: F x y ~ F u v = F x ~ F u /\ y ~ v actually, i don't even understand the first part of