Changeset 10 for sizechecking_branches
- Timestamp:
- Nov 14, 2012, 8:45:28 PM (13 years ago)
- 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 #-} 2 module L where 2 3 3 4 import Data.Char(ord, chr) … … 11 12 {- Lambda calculus without free variables -} 12 13 type Arr repr a b = repr a -> repr b 13 --type family Arr (repr :: * -> *) (a :: *) (b :: *) :: *14 14 15 15 class Lambda l where … … 26 26 undef :: l Bottom 27 27 unsized :: l () 28 29 instance Lambda l => Show (l a) where 30 showsPrec _ e = error "Error: no show" 31 32 instance Lambda l => Eq (l a) where 33 (==) _ _ = error "Error: no eq" 28 34 29 35 instance Lambda l => Num (l Int) where
Note: See TracChangeset
for help on using the changeset viewer.