License | BSD-style (see the file LICENSE) |
---|---|
Maintainer | sjoerd@w3future.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
class HasTerminalObject k => HasNaturalNumberObject k where Source #
type NaturalNumberObject k :: Type Source #
zero :: k (TerminalObject k) (NaturalNumberObject k) Source #
succ :: k (NaturalNumberObject k) (NaturalNumberObject k) Source #
primRec :: k (TerminalObject k) a -> k a a -> k (NaturalNumberObject k) a Source #
Instances
HasNaturalNumberObject (->) Source # | |
Defined in Data.Category.NNO type NaturalNumberObject (->) Source # zero :: TerminalObject (->) -> NaturalNumberObject (->) Source # succ :: NaturalNumberObject (->) -> NaturalNumberObject (->) Source # primRec :: (TerminalObject (->) -> a) -> (a -> a) -> NaturalNumberObject (->) -> a Source # |