packages feed

tilia-0.2.0.0: corpora/vendored/declaration/grouping/signatures-with-haddocks-under-them-out.hs

module Kiln.Shelf where

parens ::
  Doc ->
  -- | Wrap a document in parentheses.
  Doc
brackets ::
  Doc ->
  -- | Wrap a document in brackets.
  Doc
parens = wrap '(' ')'
brackets = wrap '[' ']'

class Shelved a where
  height ::
    a ->
    -- | How high it sits.
    Word

  depth :: a -> Word