Changeset 24 for sizechecking/branches/macs/Lambda.hs
- Timestamp:
- May 3, 2014, 6:38:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sizechecking/branches/macs/Lambda.hs
r23 r24 11 11 lam :: (l a -> l b) -> l (a -> b) 12 12 app :: l (a -> b) -> l a -> l b 13 const :: Int -> l Int13 lit :: Int -> l Int 14 14 15 15 {- … … 18 18 newtype Q a = Q { unQ :: a } 19 19 instance Lambda Q where 20 const = Q20 lit = Q 21 21 lam a = Q (unQ.a.Q) 22 22 app a b = Q $ unQ a (unQ b) … … 37 37 38 38 instance Lambda S where 39 const a = S (\_ p -> showsPrec p a)39 lit a = S (\_ p -> showsPrec p a) 40 40 app (S fun) (S arg) = S (\s p -> 41 41 let (s1, s2) = S.split2 s
Note: See TracChangeset
for help on using the changeset viewer.