packages feed

tilia-0.2.0.0: corpora/vendored/haddock/placement/haddock-of-what-precedes-under-another-haddock.hs

module Derived.Types where

data Tree = Leaf | Node Tree Tree
-- TODO: derive the arity once families are handled
-- $(deriving_th ''Tree)

-- ^ A recursive definition.
data List a = Nil | Cons a (List a)

size :: Int
size = 1
-- ^ The size.

-- ^ More on the size.