Changeset 8652
- Timestamp:
- 01/14/06 00:34:11 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/Yaml.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Yaml.hs
r8609 r8652 50 50 val <- fromYaml valNode 51 51 return (key, val) 52 let spec = Map.fromList (vals :: [(String, Val)]) 52 --let spec = Map.fromList (vals :: [(String, Val)]) 53 --spec <- liftSTM . newTVar . Map.map lazyScalar $ Map.fromList (vals :: [(String, Val)]) 54 spec' <- liftSTM . newTVar $ Map.fromList (vals :: [(String, Val)]) 55 spec <- liftSTM . readTVar $ spec' 53 56 rule <- fromVal =<< Map.lookup "rule" spec 54 57 global <- fromVal =<< Map.lookup "global" spec … … 108 111 h <- hash_fetch hv 109 112 let assocs = Map.toList h 110 yamlmap <- f lip mapM assocs $ \(ka, va) -> do113 yamlmap <- forM assocs $ \(ka, va) -> do 111 114 ka' <- toYaml $ VStr ka 112 115 va' <- toYaml va
