Skip to content

Add proper support for units #5

@snowleopard

Description

@snowleopard

For example, Variable Milli Watt. To be able to use Num instance, we should probably allow arbitrary addition and multiplication, but still reflect meaningless results in the type:

  • 1 :: Variable Milli Watt + 2 :: Variable Milli Watt == 3 :: Variable Milli Watt.
  • 1 :: Variable Milli Watt + 2 :: Variable Micro Watt == 3 :: Variable Error Watt.
  • 1 :: Variable Milli Watt + 2 :: Variable Milli Seconds == 3 :: Variable Milli Error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions