Next Types Are Theorems; Programs Are Proofs 2

Haskell function types

        inc n = n + 1
        inc :: Int -> Int
        length :: [a] -> Int
        id     :: a -> a
        \n -> n + 1                 :: Int -> Int
        \x -> x                     :: a -> a
        \x -> 3                     :: a -> Int

Next Next