[plt-scheme] Re: cannot require 19.ss (srfi)

From: David Van Horn (dvanhorn at cs.uvm.edu)
Date: Thu Jan 6 08:59:17 EST 2005

Hans Oesterholt-Dijkema wrote:
> When I put 
>   (require (lib "19.ss" "srfi"))
> in a module declaration,
> I get following error, using mzc:
> MzScheme compiler (mzc) version 209, Copyright (c) 2004 PLT Scheme, Inc.
> mzscheme/sqld-psql.scm:69:8: module: identifier already imported (from a
> different source) at: make-date in: (require (lib "19.ss" "srfi"))
> make: *** [mzscheme_scms] Error 1
> What does it mean?

You want: (require (lib "time.ss" "srfi" "19"))

Since SRFI 19 defines names that conflict with primitives in the 
mzscheme language, two modules are provided:  srfi/19.ss provides the 
names as defined in the SRFI document, srfi/19/time.ss provides `srfi:' 
prefixed identifiers where clashes with mzscheme occur (eg. 
srfi:make-date, srfi:date?, etc).  19.ss is meant to be used from the 
top-level to write portable programs, whereas time.ss is convenient to 
use when writing PLT modules.


Posted on the users mailing list.