HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.TypeChecking.Pretty

  • 5 types
  • 3 classes
  • 38 values
  • PackageAgda-2.7.0.1
  • Exports46
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePretty.hs
classclass PrettyTCM a where
#

Methods

Instances117PrettyTCM, …
datadata WithNode n a
#

Pairing something with a node (for printing only).

Constructors

classclass Semigroup a where
#

The class of semigroups (types with an associative binary operation).

Instances should satisfy the following:

Associativity

x <> (y <> z) = (x <> y) <> z

You can alternatively define sconcat instead of (<>), in which case the laws are:

Unit

sconcat (pure x) = x

Multiplication

sconcat (join xss) = sconcat (fmap sconcat xss)

Methods

  • (<>) :: a -> a -> ainfixr 6

    An associative operation.

    Examples
    Example1 expression
    [1,2,3] <> [4,5,6][1,2,3,4,5,6]
    Example1 expression
    Just [1, 2, 3] <> Just [4, 5, 6]Just [1,2,3,4,5,6]
    Example1 expression
    putStr "Hello, " <> putStrLn "World!"Hello, World!
Instances241Semigroup, …

Orphan instances

1 instance
  • Semigroup (TCM Doc)

    This instance is more specific than a generic instance Semigroup a => Semigroup (TCM a).