Explicit Typeable for older GHC.
This commit is contained in:
+3
-2
@@ -4,12 +4,13 @@ module Panic (
|
|||||||
) where
|
) where
|
||||||
|
|
||||||
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