Skip to content

Unroll gets into infinite loop on [SomeType] #6163

Closed
@uhbif19

Description

Summary

This seems like unintended behavior because:

  1. AssocMap uses lists, so they probably should work
  2. There is instance of HasSchema for [x] provided

Steps to reproduce the behavior

Compile:

definitions :: Definitions (Unroll [Integer])
definitions = error "TODO"

Same for deriveDefinitions @'[[Integer]]

Actual Result

Typechecking fails with error like Reduction stack overflow; ...

Expected Result

Type-checking does not fail.

Describe the approach you would take to fix this

No response

System info

plutus-tx 1.27.0.0

GHC 9.6.3

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions