Skip to content

Commit

Permalink
Turned ThunkInfo into a newtype
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Mar 27, 2023
1 parent d62a2ce commit 611acb4
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
Expand Up @@ -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
Expand Down

0 comments on commit 611acb4

Please sign in to comment.