Show
Ignore:
Timestamp:
05/30/05 19:00:46 (4 years ago)
Author:
theorbtwo
svk:copy_cache_prev:
5706
Message:

Fix the error for 42 = "a" to point out that the 42 is read-only, not what
is being assigned to it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Types/Scalar.hs

    r2559 r4173  
    2121    scalar_iType = const $ mkType "Scalar::Lazy" 
    2222    scalar_fetch = return . maybe undef id 
    23     scalar_store _ v = retConstError v 
     23    scalar_store d s = retConstError $ VStr $ show d 
    2424    scalar_const = const Nothing 
    2525 
     
    3838    scalar_fetch (VRef ref) = readRef ref 
    3939    scalar_fetch v = return v 
    40     scalar_store _ v = retConstError v 
     40    scalar_store d s = retConstError d 
    4141    scalar_const = Just 
    4242