kansas-lava-0.2.4.2: Kansas Lava is a hardware simulator and VHDL generator.

Safe HaskellNone
LanguageHaskell2010

Language.KansasLava.Entity

Description

This module contains convenience functions for building deep embedding entities.

Synopsis

Documentation

entity0 :: forall o. Rep o => Id -> D o Source

A zero-input Entity.

entity1 :: forall a o. (Rep a, Rep o) => Id -> D a -> D o Source

A one-input Entity

entity2 :: forall a b o. (Rep a, Rep b, Rep o) => Id -> D a -> D b -> D o Source

A two-input entity.

entity3 :: forall a b c o. (Rep a, Rep b, Rep c, Rep o) => Id -> D a -> D b -> D c -> D o Source

A three-input entity.

entityN :: forall a o. (Rep a, Rep o) => Id -> [D a] -> D o Source

An n-ary entity, with all of the inputs having the same type, passed in as a list.