Explicit Typeable for older GHC.

This commit is contained in:
Stephen Diehl
2016-06-08 19:38:45 -04:00
parent 6df421ad72
commit 6ae19be4b7
+3 -2
View File
@@ -4,12 +4,13 @@ module Panic (
) where
import Base (Show)
import Data.Text(Text)
import Data.Text (Text)
import Data.Typeable (Typeable)
import Control.Exception as X
-- | Uncatchable exceptions thrown and never caught.
data FatalError = FatalError { msg :: Text }
deriving (Show)
deriving (Show, Typeable)
instance Exception FatalError