Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 22d9391

Browse files
Stop using absent function spInfoName.
1 parent 93e3a40 commit 22d9391

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Control/Distributed/Static.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ data SDynamic = SDynamic TypeRep (StaticPtr GHC.Any)
259259

260260
instance Show SDynamic where
261261
show (SDynamic typ ptr) =
262-
"<<static " ++ spInfoName (staticPtrInfo ptr) ++ " :: " ++ show typ ++ ">>"
262+
let spi = staticPtrInfo ptr
263+
(line, col) = spInfoSrcLoc spi
264+
in concat [ "<<static ", spInfoModuleName spi, ":", show line, ":"
265+
, show col, " :: ", show typ, ">>"
266+
]
263267

264268
instance Eq SDynamic where
265269
SDynamic _ ptr1 == SDynamic _ ptr2 =

0 commit comments

Comments
 (0)