Changeset 10 for sizechecking_branches


Ignore:
Timestamp:
Nov 14, 2012, 8:45:28 PM (13 years ago)
Author:
gobi
Message:

adding a new implementation of Lambda

Location:
sizechecking_branches
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • sizechecking_branches/L.hs

    r9 r10  
    1 {-# Language GADTs, FlexibleInstances, FlexibleContexts, MultiParamTypeClasses, FunctionalDependencies, ScopedTypeVariables, TypeFamilies, NoMonomorphismRestriction #-} 
     1{-# Language GADTs, FlexibleInstances, FlexibleContexts, MultiParamTypeClasses, FunctionalDependencies, ScopedTypeVariables, TypeFamilies, NoMonomorphismRestriction, OverlappingInstances #-} 
     2module L where 
    23 
    34import Data.Char(ord, chr) 
     
    1112{- Lambda calculus without free variables -} 
    1213type Arr repr a b = repr a -> repr b 
    13 --type family Arr (repr :: * -> *) (a :: *) (b :: *) :: * 
    1414 
    1515class Lambda l where 
     
    2626    undef   :: l Bottom 
    2727    unsized :: l () 
     28 
     29instance Lambda l => Show (l a) where 
     30    showsPrec _ e = error "Error: no show" 
     31 
     32instance Lambda l => Eq (l a) where 
     33    (==) _ _ = error "Error: no eq" 
    2834 
    2935instance Lambda l => Num (l Int) where 
Note: See TracChangeset for help on using the changeset viewer.