[plt-scheme] scribble/lp and modules

From: Jon Stenerson (jonstenerson at comcast.net)
Date: Wed Jul 1 23:23:17 EDT 2009

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) ...."


#lang scribble/lp

   (module example-module scheme
      (provide foo bar)
      (define foo 2)
      (define (bar x)
        (+ x 1)))

Posted on the users mailing list.