Changeset 12721 for src/Pugs/Val
- Timestamp:
- 08/26/06 16:16:55 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Val/Code.hs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Val/Code.hs
r12484 r12721 67 67 , s_requiredNames :: Set ID 68 68 , s_positionalList :: [Param] 69 , s_namedSet :: Map ID Param69 , s_namedSet :: Map.Map ID Param 70 70 , s_slurpyScalarList :: [Param] 71 71 , s_slurpyArray :: Maybe Param … … 78 78 , s_requiredNames :: Set ID 79 79 , s_positionalList :: [Param] 80 , s_namedSet :: Map ID Param80 , s_namedSet :: Map.Map ID Param 81 81 , s_slurpyScalarList :: [Param] 82 82 , s_slurpyArray :: Maybe Param … … 157 157 data Feed a = MkFeed 158 158 { f_positionals :: [a] 159 , f_nameds :: Map ID [a] -- ^ maps to [a] and not a since if the Sig stipulates159 , f_nameds :: Map.Map ID [a] -- ^ maps to [a] and not a since if the Sig stipulates 160 160 -- @x, "x => 1, x => 2" constructs @x = (1, 2). 161 161 } 162 162 deriving (Show, Eq, Ord, Typeable) {-!derive: YAML_Pos, Perl6Class, MooseClass!-} 163 163 164 emptyFeed :: Feed a 165 emptyFeed = MkFeed [] Map.empty 164 166 165 167 -- | Runtime Capture with dynamic Exp for leaves … … 167 169 -- | Static Capture with Val for leaves 168 170 type ValCapt = Capt Val 171 type ValFeed = Feed Val 169 172 173 instance ICoercible P ValCapt where 174 asStr _ = return (cast "<capt>") -- XXX 175
