[racket] Whalesong: define-resource generates error after compilation

From: Galler (lzgaller at optonline.net)
Date: Sat Dec 7 01:55:15 EST 2013

Danny,
define-resource is generating a unexpected specialize! error when 
compiled.
Here's the minimal setup: Please note that I'm using the latest github 
version of your source, not the Planet package.
Thanks for taking a look
R./
Zack
Program resource-error.rkt
=======================================
#lang whalesong
(require  whalesong/resource)
(define-resource timer.png)
==================================
Instructions for reproducing error
1. obtain source of whalesong from github/dyoo/whalesong (do not use the 
Planet library, it won't compile), place in collects/whalesong director
2. build whalesong.exe using whalesong/make-launcher.rkt
3. run whalesong build resource-error.rkt
4. open file resource-error.html
Browser will display the following error:
Error: specialize!: expected resource as argument 1 but received 
(resource #<path:C:\working-copies\whalesong\timer.png> "timer.png" 
#"PNG\r\n\n\rIHDR\baIDATx]HSat_)Rv!yS4\f\"@E>\b\"p%^Ub\bA5s32!RT<37\rq/yyy 
t2oNC \\.GWW'[\a\ruLLL7(,,\n0<y(Oib1PrwX^rgdBQ${ +8f\vIJ`MThU=!KX>l_w\v| 
GNj4m}\t9G>sS5Cc=E4fHViCKvTVx\fizVX\tmmmMilk-P\vUE\n,G at 8\b_=z^F&lynu~j$lYE8%\fKp0EgNy|x)DR}Hc}Nz,KAGGI\"TWU,.`\\Afez0+QA at zPf\nvwX2;MY1])$jMb_}bT\fDuGc59{dOo?\a[jhh0Bc!G^bA9~T[[F=H677=xH$'''L_ 
EIENDB`")
Stacktrace:
in specialize!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131207/9d4f08f7/attachment.html>

Posted on the users mailing list.