Note: This is taken from the Chicken Wiki, where a more recent version could be available.
Loading uri-literals also loads the uri egg and allows using convenient URI literals as follows:
#;1> (use uri-literals) #;2> #<http://www.call-with-current-continuation.org/> #<http://www.call-with-current-continuation.org/> #;3> ,x #<http://www.call-with-current-continuation.org/> (uri "http://www.call-with-current-continuation.org/") #;4> ,d #<http://www.call-with-current-continuation.org/> structure of type `uri': ... #;5> (car (uri-path #<mailto:email@example.com>)) "firstname.lastname@example.org"
Passing a -X uri-literals command-line option to csc allows you to conveniently make use of URI literals in your egg or compiled program without making the uri-literals egg a runtime dependency.
This egg installs a reader extension for #\< that reads a URI literal as described below in read-uri-literal. Additionally, a record printer is installed so that all URI objects are automatically printed using write-uri-literal.
Note that there are some caveats to using reader extensions when compiling; for more details, refer to the relevant FAQ entry.
[procedure] (read-uri-literal [PORT])
Reads a URI literal from PORT, which defaults to the value of (current-input-port). The literal is converted to a URI object as provided by the uri egg.
[procedure] (write-uri-literal URI [PORT])
Writes the URI object URI in #<uri> format to PORT, which defaults to the value of (current-output-port).
Copyright (c) 2006-2007 Arto Bendiken. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.