Re: [racket] Module docs - still a problem

2011-04-07 Thread Noel Welsh
Try this: tar zxvf carali.tar.gz cd carali raco planet link schematics carali.plt 1 0 . raco planet create . HTH, N. On Thu, Apr 7, 2011 at 9:11 PM, Noel Welsh wrote: > On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter wrote: >> A previous poster said that the #lang directive created an implicit mod

Re: [racket] Module docs - still a problem

2011-04-07 Thread Noel Welsh
On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter wrote: > A previous poster said that the #lang directive created an implicit module. > However, this doesn't seem to be strictly true, as my function http-get is > automatically "provided" without explicit mention; which is not the same > behaviour as wh

[racket] Module docs - still a problem

2011-04-07 Thread Mark Carter
OK, I'm trying to generate module docs, so I run raco setup but I get raco setup: --- building documentation --- raco setup: error running: (lib carali/http.rkt) dynamic-require: name is not provided: 'doc by module: # raco setup: rendering: scribblings/main/start.scrbl Any clues on this one

Re: [racket] Question about modules

2011-04-07 Thread Robby Findler
This doesn't seem to help with the problem facing planet, namely how to tell if it is safe to instantiate a module twice or not. Planet can already instantiate both modules fine -- it just need to know it is safe to do so. In your A/Z example, the question is if A and Z communicate B version 1 val

Re: [racket] Question about modules

2011-04-07 Thread Matthias Felleisen
Lib A can link to an instantiation of Lib B version 1 and Lib Z can link to an instantiation of Lib B version 2 On Apr 7, 2011, at 3:01 PM, Robby Findler wrote: > How? > > Robby > > On Thu, Apr 7, 2011 at 12:47 PM, Matthias Felleisen > wrote: >> >> Units would solve this problem. >> >>

Re: [racket] Question about modules

2011-04-07 Thread Robby Findler
How? Robby On Thu, Apr 7, 2011 at 12:47 PM, Matthias Felleisen wrote: > > Units would solve this problem. > > > On Apr 7, 2011, at 7:32 AM, Robby Findler wrote: > >> On Wed, Apr 6, 2011 at 2:10 PM, Mark Engelberg >> wrote: >>> The following two lines trigger an error: >>> >>> (require (planet

Re: [racket] Embedded docs

2011-04-07 Thread Mark Carter
> From: Vincent St-Amour > A #lang declaration implicitly wraps the rest of the file in a module > form. Putting an explicit module form there is redundant, and is an > error. Ah, well, that is interesting. Many thanks. _ For list-related adm

Re: [racket] Question about modules

2011-04-07 Thread Matthias Felleisen
Units would solve this problem. On Apr 7, 2011, at 7:32 AM, Robby Findler wrote: > On Wed, Apr 6, 2011 at 2:10 PM, Mark Engelberg > wrote: >> The following two lines trigger an error: >> >> (require (planet dherman/memoize:3:1)) >> (require (planet soegaard/math:1:4/math)) >> >> The error

[racket] Embedded docs

2011-04-07 Thread Mark Carter
Responder wrote: --- begin --- You need to enable @{...} syntax. If you module currently starts #lang racket/base change it to #lang at-exp racket/base which mixes @{...} syntax support onto the `racket/base' language. --- end --- My reply: It doesn't work. I get module: illegal use (not

Re: [racket] Embedded docs

2011-04-07 Thread Matthew Flatt
You need to enable @{...} syntax. If you module currently starts #lang racket/base change it to #lang at-exp racket/base which mixes @{...} syntax support onto the `racket/base' language. At Thu, 7 Apr 2011 15:05:36 +0100 (BST), Mark Carter wrote: > OK, I cleared up some of my problems in a

Re: [racket] [scribble] comments?

2011-04-07 Thread Eric Tanter
Thanks! -- Éric On Apr 7, 2011, at 11:37 AM, Sam Tobin-Hochstadt wrote: > @;{ this is a > comment > that spans lines } > > On Thu, Apr 7, 2011 at 12:35 PM, Eric Tanter wrote: >> Hi, >> >> In the Scribble language, @; introduces a comment. >> I'm looking for the Scribble equivalents of #| |#

Re: [racket] [scribble] comments?

2011-04-07 Thread Sam Tobin-Hochstadt
@;{ this is a comment that spans lines } On Thu, Apr 7, 2011 at 12:35 PM, Eric Tanter wrote: > Hi, > > In the Scribble language, @; introduces a comment. > I'm looking for the Scribble equivalents of #| |# and #; > I've tried the obvious (@#|, @#;) but it does not work. > > Is there a way to comm

[racket] [scribble] comments?

2011-04-07 Thread Eric Tanter
Hi, In the Scribble language, @; introduces a comment. I'm looking for the Scribble equivalents of #| |# and #; I've tried the obvious (@#|, @#;) but it does not work. Is there a way to comment out a region in Scribble? Thanks, -- Éric _ For l

Re: [racket] Newbie question: Teach Yourself Scheme in Fixnum Days- macros

2011-04-07 Thread Jos Koot
Also very interesting is eli's http://blog.racket-lang.org/2008/02/dirty-looking-hygiene.html Teaches how to ittify with syntax-rules and syntax-parameterize. Jos _ From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Stephen De Gabrielle Sent: 05 April

[racket] Embedded docs

2011-04-07 Thread Mark Carter
OK, I cleared up some of my problems in a previous post. It seems I have to do raco setup to rebuild the module and documentation. There's a problem, though. I have: (provide/doc (proc-doc/names http-get (-> string? string?) ; the output (string-url) @{Say something meaningful

[racket] require url?

2011-04-07 Thread Eric Tanter
Hi all, In the same way that it is possible to require a file given a local path: eg. (require (file "/home//foo.rkt")) I'm looking for a way to require a file given a URL: eg. (require (url "http://tmp.barzilay.org/defmac.ss";)) The above does not work because url is not a require sub-form.

Re: [racket] Question about modules

2011-04-07 Thread Robby Findler
On Wed, Apr 6, 2011 at 2:10 PM, Mark Engelberg wrote: > The following two lines trigger an error: > > (require (planet dherman/memoize:3:1)) > (require (planet soegaard/math:1:4/math)) > > The error says something along the lines that the soegaard package > requires an older version of the memoize

[racket] Generating docs

2011-04-07 Thread Mark Carter
I'm still quite puzzled as to how to document my modules. I have a directory called "carali", which contains rkt files. One of the files is http.rkt, containing the code: (module maths racket (provide http-get) (require racket/port) (require net/url) (require scribble/srcdoc) (provide/doc (