Den tor. 9. apr. 2020 kl. 11.04 skrev Lucas Liendo <[email protected]
>:

> Hi everyone! I've a very dumb question (as still not very experienced
> Racket programmer), I'm doing the following:
>
> (require net/url
>          web-server/dispatchers/filesystem-map
>          (rename-in web-server/dispatchers/dispatch-files
>                     (make dispatch-files))
>          (rename-in web-server/dispatchers/dispatch-sequencer
>                     (make dispatch-sequencer)))
>
> As you can see `make` is defined both in
> `web-server/dispatchers/dispatch-files` and
> `web-server/dispatchers/dispatch-sequencer` and I think that's the
> reason for this error:
>
> /tmp/rename-example.rkt:7:20: module: identifier already required
>   at: interface-version
>

This shows that interface-version is the (new) cultprit.
You can rename it to avoid a collision - or if you don't need it, you can
simply omit it:

    #lang racket
    (require net/url
         web-server/dispatchers/filesystem-map
         (rename-in web-server/dispatchers/dispatch-files
                    (make dispatch-files))
         (except-in (rename-in web-server/dispatchers/dispatch-sequencer
                               (make dispatch-sequencer))
                    interface-version))


/Jens Axel
https://racket-stories.com

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgx3Qv72EGM%3DfzKK1rNrcCmnoCVy5%2BQxpPGH5HPusB%3D5bw%40mail.gmail.com.

Reply via email to