Ignore:
Timestamp:
May 3, 2014, 6:38:40 PM (11 years ago)
Author:
gobi
Message:

expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sizechecking/branches/macs/Lambda.hs

    r23 r24  
    1111    lam   :: (l a -> l b) -> l (a -> b) 
    1212    app   :: l (a -> b) -> l a -> l b 
    13     const :: Int -> l Int 
     13    lit :: Int -> l Int 
    1414 
    1515{- 
     
    1818newtype Q a = Q { unQ :: a } 
    1919instance Lambda Q where 
    20     const = Q 
     20    lit = Q 
    2121    lam a = Q (unQ.a.Q) 
    2222    app a b = Q $ unQ a (unQ b) 
     
    3737 
    3838instance Lambda S where 
    39     const a = S (\_ p -> showsPrec p a) 
     39    lit a = S (\_ p -> showsPrec p a) 
    4040    app (S fun) (S arg) = S (\s p ->  
    4141        let (s1, s2) = S.split2 s  
Note: See TracChangeset for help on using the changeset viewer.