Explicit Typeable for older GHC.
This commit is contained in:
+2
-1
@@ -5,11 +5,12 @@ module Panic (
|
|||||||
|
|
||||||
import Base (Show)
|
import Base (Show)
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
|
import Data.Typeable (Typeable)
|
||||||
import Control.Exception as X
|
import Control.Exception as X
|
||||||
|
|
||||||
-- | Uncatchable exceptions thrown and never caught.
|
-- | Uncatchable exceptions thrown and never caught.
|
||||||
data FatalError = FatalError { msg :: Text }
|
data FatalError = FatalError { msg :: Text }
|
||||||
deriving (Show)
|
deriving (Show, Typeable)
|
||||||
|
|
||||||
instance Exception FatalError
|
instance Exception FatalError
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user