Changeset 5464 for src/Pugs/Bind.hs
- Timestamp:
- 07/12/05 05:34:56 (3 years ago)
- svk:copy_cache_prev:
- 7349
- Files:
-
- 1 modified
-
src/Pugs/Bind.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Bind.hs
r5450 r5464 142 142 143 143 {-| 144 (Does this even get used? It seems to be a leftover fragment of145 'doBindArray'...)146 -}147 bindEmpty :: Param -> MaybeError (Param, Exp)148 bindEmpty p = case paramName p of149 ('@':_) -> return (p, emptyArrayExp)150 ('$':_) -> fail $ "Unbound slurpy scalar: " ++ show p151 (x:_) -> internalError $ "bindEmpty: unexpected char: " ++ (show x)152 [] -> internalError $ "bindEmpty: empty string encountered"153 154 {-|155 144 Return @True@ if the given expression represents a pair (i.e. it uses the 156 145 \"=>\" pair constructor).
