Re: [racket] Contract weirdness: "broke contract [...]; expected , given: #"

2010-11-06 Thread Carlos Scheidegger
is is not too important to me since my code now works, but it seems to signal a change in behavior between these two versions. I'm posting it here in case it turns out to be important. Thanks again, -carlos On Sat, Nov 6, 2010 at 2:57 PM, Jay McCarthy wrote: > On Sat, Nov 6, 2010 at 12:06

Re: [racket] Contract weirdness: "broke contract [...]; expected , given: #"

2010-11-06 Thread Carlos Scheidegger
ad-posts "posts")) > (part->xexpr (first posts)) '(div (div ((class "part-title")) (h1 "This is a new title")) (p "There would be some blocks here")) > (This worked. However,) $ cd repro; racket serve.rkt should fail with the contract excep

[racket] Contract weirdness: "broke contract [...]; expected , given: #"

2010-11-06 Thread Carlos Scheidegger
Hi, This must be a simple question, but I'm having some trouble convincing Racket that one of my procedure calls respects the required contract, and I'm not quite sure how to solve it. I only experience the problem when running the code with serve/servlet, so I have a hunch that some interaction w