Changeset 2774 for src/Pugs/Bind.hs
- Timestamp:
- 05/06/05 16:47:16 (4 years ago)
- svk:copy_cache_prev:
- 4340
- Files:
-
- 1 modified
-
src/Pugs/Bind.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Bind.hs
r2771 r2774 84 84 isPair (Cxt _ exp) = isPair exp 85 85 isPair (Syn "=>" [(Val _), _]) = True 86 isPair (App "&infix:=>"[(Cxt _ (Val _)), _] []) = True87 isPair (App "&infix:=>"[(Val _), _] []) = True86 isPair (App (Var "&infix:=>") [(Cxt _ (Val _)), _] []) = True 87 isPair (App (Var "&infix:=>") [(Val _), _] []) = True 88 88 isPair _ = False 89 89 … … 92 92 unPair (Cxt _ exp) = unPair exp 93 93 unPair (Syn "=>" [(Val k), exp]) = (vCast k, exp) 94 unPair (App "&infix:=>"[(Cxt _ (Val k)), exp] []) = (vCast k, exp)95 unPair (App "&infix:=>"[(Val k), exp] []) = (vCast k, exp)94 unPair (App (Var "&infix:=>") [(Cxt _ (Val k)), exp] []) = (vCast k, exp) 95 unPair (App (Var "&infix:=>") [(Val k), exp] []) = (vCast k, exp) 96 96 unPair x = error ("Not a pair: " ++ show x) 97 97
