Skip to content

Commit

Permalink
Remove all derived Typeable instances
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jan 13, 2025
1 parent 4e0a023 commit c5a44be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cardano-prelude/src/Cardano/Prelude/Panic.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE Safe #-}

-- This module cargo-culted from `Protolude`.
Expand All @@ -10,12 +9,11 @@ module Cardano.Prelude.Panic (

import Control.Exception (Exception, throw)
import Data.Text (Text)
import Data.Typeable (Typeable)
import GHC.Stack (HasCallStack)

-- | Uncatchable exceptions thrown and never caught.
newtype FatalError = FatalError { fatalErrorMessage :: Text }
deriving (Show, Typeable)
deriving Show

instance Exception FatalError

Expand Down

0 comments on commit c5a44be

Please sign in to comment.