| author | wenzelm |
| Sat, 06 Oct 2007 22:07:15 +0200 | |
| changeset 24877 | 81147215a12c |
| parent 24628 | 33137422d7fd |
| child 25056 | 743f3603ba8b |
| permissions | -rw-r--r-- |
module Codegen where { import qualified Nat; class Null a where { nulla :: a; }; heada :: (Codegen.Null b) => [b] -> b; heada (x : xs) = x; heada [] = Codegen.nulla; instance Codegen.Null (Maybe a) where { nulla = Nothing; }; dummy :: Maybe Nat.Nat; dummy = Codegen.heada [Just (Nat.Suc Nat.Zero_nat), Nothing]; }