[plt-scheme] scribble/lp and modules

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Jul 1 23:39:59 EDT 2009

No, I don't think that is possible, currently. The module form is
dictated by the #lang scribble/lp line (it is scheme/base).

Robby

On Wed, Jul 1, 2009 at 10:23 PM, Jon Stenerson<jonstenerson at comcast.net> wrote:
> I just started trying out the literate programming feature in scribble. Is
> there a way to put a module form in a @chunk. The following gives me an
> error "module: illegal use (not at top-level) ...."
>
> Jon
>
> #lang scribble/lp
>
> @chunk[<main>
>   (module example-module scheme
>      (provide foo bar)
>      (define foo 2)
>      (define (bar x)
>        (+ x 1)))
> ]
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.