2{-# LANGUAGE ImplicitParams #-}
4module Language.PureScript.Crash where
8import qualified GHC.Stack
10-- | A compatibility wrapper for the @GHC.Stack.HasCallStack@ constraint.
11#if __GLASGOW_HASKELL__ >= 800
12type HasCallStack = GHC.Stack.HasCallStack
13#elif MIN_VERSION_GLASGOW_HASKELL(7,10,2,0)
14type HasCallStack = (?callStack :: GHC.Stack.CallStack)
16import GHC.Exts (Constraint)
17-- CallStack wasn't present in GHC 7.10.1
18type HasCallStack = (() :: Constraint)
21-- | Exit with an error message and a crash report link.
22internalError :: HasCallStack => String -> a
25 . ("An internal error occurred during compilation: " ++)
26 . (++ "\nPlease report this at https://github.com/purescript/purescript/issues")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list