[racket-dev] Can't get for-label to work in Scribble docs

From: Neil Toronto (neil.toronto at gmail.com)
Date: Mon Jan 23 15:44:36 EST 2012

On 01/23/2012 01:36 PM, Ryan Culpepper wrote:
> On 01/23/2012 01:31 PM, Neil Toronto wrote:
>> On 01/23/2012 01:18 PM, Neil Toronto wrote:
>>> For some reason, when I require (for-label db/base), I still get
>>> warnings about `sql-timestamp?', `sql-time?' and `sql-date?', and red
>>> underlines under them.
>>
>> Okay, I figured out what I need to do, but not why it works. I have to
>> require JUST (for-label db), NOT (for-label db/base) NOR (for-label db
>> db/base).
>>
>> That (for-label db/base) and (for-label db db/base) don't work makes no
>> sense to me. Ryan's Scribble docs look fine. What's going on?
>
> I suspect I should be using #:use-sources to tell Scribble that those
> bindings from db and db/base are the same.

I have a struct type exported by both `plot' and `plot/utils'. I should 
probably do the same.

How would you do that, anyway? I've read and re-read the `defmodule' 
docs, but I still don't know how to use #:use-sources.

Neil T

Posted on the dev mailing list.