I usually use this macro in a wrapper that require/provides the libs and
provides compatibility wrappers when needed
;; compile time version switch
(define-syntax (version>=? stx)
(syntax-case stx ()
[(_ min-version body body-else)
(if (string>=? (version) (syntax-e #'min-version))
If your library's name is also `json` you could put in a place that is
included in PLTCOLLECTS when you run v5.2.1, but use a PLTCOLLECTS that
doesn't include it when your run v6.1 (in much the same way that you
use different PLTCOMPILEDROOTS settings for the different versions).
If your library h
Actually this issue is still perplexing me. In 5.2.1 I have my own json lib
which provides jsexpr->string. In 6.1 it's part of the distribution's
collects directory.
Is there a command line for racket that'll cause it to find mine under
5.2.1 and the standard lib in 6.1 (skipping mine)?
Dan
On W
Ugh. Never mind... the old json lib is mine. Carry on :)
On Wed, Jan 7, 2015 at 4:45 PM, Dan Liebgold wrote:
>
> I'm maintaining the same racket code between Racket version 5.2.1 and 6.1.
> One thing that changed between those version was the json to string (and
> vice versa) lib functions.
>
>
I'm maintaining the same racket code between Racket version 5.2.1 and 6.1.
One thing that changed between those version was the json to string (and
vice versa) lib functions.
Is there a straightforward way to define those functions so they'll work
with both lib versions?
Thanks,
--
Dan Liebgold
Some of us have discussed this in recent months. So far, our conclusion
has been "not yet".
At Mon, 05 Jan 2015 10:56:01 +, Stephen De Gabrielle wrote:
> (Sorry if this is the wrong list)
>
> I just saw the LTS Haskell announcement, and it made me wonder if there is
> a racket equivalent?
>
It worked.
Thanks!
2015-01-07 18:45 GMT+01:00 Matthew Flatt :
> I wasn't able to replicate the problem, but I think I see what could go
> wrong. I've pushed an attempt at a repair.
>
> At Wed, 7 Jan 2015 18:31:35 +0100, Jens Axel Søgaard wrote:
>> Hi All,
>>
>> I got a contract when I tried to bu
I wasn't able to replicate the problem, but I think I see what could go
wrong. I've pushed an attempt at a repair.
At Wed, 7 Jan 2015 18:31:35 +0100, Jens Axel Søgaard wrote:
> Hi All,
>
> I got a contract when I tried to build racket. Any ideas?
>
> The main error is below.
> Entire log is here
Hi All,
I got a contract when I tried to build racket. Any ideas?
The main error is below.
Entire log is here:
https://gist.github.com/soegaard/aa8ea014e043a899a5a2
/Jens Axel
package-source->name+type: contract violation
expected: (or/c #f (or/c (quote name) (quote file) (quote dir)
(qu
9 matches
Mail list logo