Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitRepresentation.Deriving fails on tuples #560

Closed
leonschoorl opened this issue Mar 26, 2019 · 0 comments · Fixed by #596
Closed

BitRepresentation.Deriving fails on tuples #560

leonschoorl opened this issue Mar 26, 2019 · 0 comments · Fixed by #596
Labels

Comments

@leonschoorl
Copy link
Member

module RepresentTuple where

import Clash.Prelude
import Clash.Annotations.BitRepresentation.Deriving

data AB = A (Bool,Bool) | B
deriveDefaultAnnotation [t|AB|]
RepresentTuple.hs:1:1: error:
    Exception when trying to run compile-time code:
      Unexpected type: TupleT 2
CallStack (from HasCallStack):
  error, called at src/Clash/Annotations/BitRepresentation/Deriving.hs:177:19 in clash-prelude-0.99-inplace:Clash.Annotations.BitRepresentation.Deriving
    Code: deriveDefaultAnnotation [t| AB |]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant