Changeset 5807 for src/Pugs/Bind.hs
- Timestamp:
- 07/26/05 11:39:00 (3 years ago)
- svk:copy_cache_prev:
- 7758
- Files:
-
- 1 modified
-
src/Pugs/Bind.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Bind.hs
r5689 r5807 44 44 = ( ((prm, exp) : bound), exps ) 45 45 | otherwise 46 = ( bound, ( App (Var "&infix:=>") Nothing[Val (VStr name), exp]:exps) )46 = ( bound, (Syn "=>" [Val (VStr name), exp]:exps) ) 47 47 48 48 … … 148 148 isPair (Pos _ exp) = isPair exp 149 149 isPair (Cxt _ exp) = isPair exp 150 isPair ( App (Var "&infix:=>") Nothing[(Cxt _ (Val _)), _]) = True151 isPair ( App (Var "&infix:=>") Nothing[(Val _), _]) = True150 isPair (Syn "=>" [(Cxt _ (Val _)), _]) = True 151 isPair (Syn "=>" [(Val _), _]) = True 152 152 isPair _ = False 153 153 … … 159 159 unPair (Pos _ exp) = unPair exp 160 160 unPair (Cxt _ exp) = unPair exp 161 unPair ( App (Var "&infix:=>") Nothing[key, exp])161 unPair (Syn "=>" [key, exp]) 162 162 | Val (VStr k) <- unwrap key = (k, exp) 163 163 unPair x = error ("Not a pair: " ++ show x)
