author | haftmann |
Fri, 26 Jan 2007 09:24:35 +0100 | |
changeset 22188 | a63889770d57 |
parent 22015 | 12b94d7f7e1f |
child 22751 | 1bfd75c1f232 |
permissions | -rw-r--r-- |
module Codegen where { import qualified Nat; class Null a where { nulla :: a; }; heada :: (Codegen.Null a) => [a] -> a; heada (y : xs) = y; heada [] = Codegen.nulla; null_option :: Maybe a; null_option = Nothing; instance Codegen.Null (Maybe b) where { nulla = Codegen.null_option; }; dummy :: Maybe Nat.Nat; dummy = Codegen.heada [Just (Nat.Suc Nat.Zero_nat), Nothing]; }