Show
Ignore:
Timestamp:
05/01/05 06:40:46 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4052
Message:

* %hash.pairs now returns a list of lvaluable pairs.
* beginning of moving all castfails into Eval monad.

Files:
1 modified

Legend:

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

    r2441 r2541  
    3232    pair_fetchElem pv = do 
    3333        return $ proxyScalar (pair_fetchVal pv) (pair_storeVal pv) 
     34 
     35instance PairClass IPairHashSlice where 
     36    pair_iType = const $ mkType "Pair::HashSlice" 
     37    pair_fetchKey  = return . VStr . fst 
     38    pair_fetchElem = return . snd