Skip to content

Commit

Permalink
test/derive: use newtype instead of data
Browse files Browse the repository at this point in the history
  • Loading branch information
rudymatela committed Jan 25, 2024
1 parent 4b1a345 commit 419fbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/derive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ deriveListable ''Tree

-- Nested datatype cascade
data Nested = Nested N0 (N1 Int) (N2 Int Int)
data N0 = R0 Int
newtype N0 = R0 Int
newtype N1 a = R1 a
data N2 a b = R2 a b
deriveListableCascading ''Nested
Expand Down

0 comments on commit 419fbb5

Please sign in to comment.