{-# LANGUAGE Trustworthy, TemplateHaskell #-}
module Cryptol.Utils.Panic
(HasCallStack, CryptolPanic, Cryptol, Panic, panic) where
import Panic hiding (panic)
import qualified Panic as Panic
data Cryptol = Cryptol
type CryptolPanic = Panic Cryptol
panic :: HasCallStack => String -> [String] -> a
panic = Panic.panic Cryptol
instance PanicComponent Cryptol where
panicComponentName _ = "Cryptol"
panicComponentIssues _ = "https://github.com/GaloisInc/cryptol/issues"
{-# Noinline panicComponentRevision #-}
panicComponentRevision = $useGitRevision