author | haftmann |
Mon, 06 Nov 2006 16:28:29 +0100 | |
changeset 21189 | 5435ccdb4ea1 |
parent 21147 | 737a94f047e3 |
child 21993 | 4b802a9e0738 |
permissions | -rw-r--r-- |
module Codegen where import qualified Nat class Null a where null :: a head :: (Codegen.Null a_1) => [a_1] -> a_1 head (y : xs) = y head [] = Codegen.null null_option :: Maybe b null_option = Nothing instance Codegen.Null (Maybe b) where null = Codegen.null_option dummy :: Maybe Nat.Nat dummy = Codegen.head [Just (Nat.Suc Nat.Zero_nat), Nothing]