ekmett / ekmett/linear

Derive instance Real a => Real (V1 a)

Open
#170 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
220
Forks
55
PR merge metrics
No merged PRs in 30d

Description

This works:

```
deriving instance Real a => Real (V1 a)
```

With this instance you can use `realToFrac` to convert any real `V1` to any fractional type.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.