Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turned ThunkInfo into a newtype
Browse files Browse the repository at this point in the history
coot committed Mar 30, 2023
1 parent 5d8d1e9 commit 331c252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NoThunks/Class.hs
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ type Context = [String]
-- to get source spans from closures. If we could take advantage of that, we
-- could not only show the type of the unexpected thunk, but also where it got
-- allocated.
data ThunkInfo = ThunkInfo {
newtype ThunkInfo = ThunkInfo {
-- The @Context@ argument is intended to give a clue to add debugging.
-- For example, suppose we have something of type @(Int, [Int])@. The
-- various contexts we might get are

0 comments on commit 331c252

Please sign in to comment.