@hackage / clash-finite

A class for types with only finitely many inhabitants

Latest1.0.0.0

About

Metadata

  • Last updated , by kleinreact
  • License MIT
  • Categories Hardware
  • Maintained by: felix@qbaylogic.com

  • Lottery factor: 1

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    test (on by default)

    You can disable tests via `-f-test`.

    large-tuples (off by default)

    Generate Finite class instances for tuples up to and including 62 elements

Readme

Finite is a class for types with only finitely many inhabitants and can be considered a more hardware-friendly alternative to Bounded and Enum, utilizing Index instead of Int and vectors instead of lists.