Skip to content

GHC.Stack.callStack throws exception

This program,

import GHC.Stack
main :: IO ()
main =  putStrLn (prettyCallStack $ id (\_ -> callStack) ())

terminates with,

Hi: popCallStack: empty stack
Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information