BaseConstructor

Base module for constructors

The intention is to assist with type inference for constructors by defining constructors that are parameterized by the Algebra and Drawing types, and instantiating those types within each backend.

Algebras that define constructors should also define a constructor mixin. See e.g. Shape for an example.

class Object
trait Matchable
class Any

Type members

Types

type Algebra[x[_]] <: Algebra[x]
type Drawing[A]

Value members

Concrete methods

def apply(f: Algebra[Drawing] => Drawing[Unit]): Picture[Unit]