[plt-scheme] r6rs - import difficulties

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Sep 9 07:33:08 EDT 2009

To make R6RS library names fit with the PLT collection system, a single
identifier `hello' corresponds to a "main.ss" library within a "hello"
collection --- not a "hello.ss" file.

At Wed, 09 Sep 2009 21:18:35 +1000, LordGeoffrey wrote:
> In r6rs mode i can't get my libraries to import.
> 
> I tried adding the current directory to the collection paths. I get the 
> following error -
> import: cannot find suitable library installed (exception: 
> collection-path: collection not found: "hello" in any of: <list of paths>
> 
> version: 4.2.1.4-svn29jul2009
> 
> The two files are:
> test-hello.ss
> #!r6rs
> (import (hello))
> 
> hello.ss
> #!r6rs
> (library (hello)
>   (export hello-world)
>   (import (rnrs base)
>           (rnrs io simple))
>   (define (hello-world)
>     (display "Hello World")
>     (newline)))
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.