packages feed

cabal-gild-1.1.0.0: source/library/CabalGild/Exception/SpecifiedOutputWithCheckMode.hs

module CabalGild.Exception.SpecifiedOutputWithCheckMode where

import qualified Control.Monad.Catch as Exception

-- | This exception is thrown when the user specifies the output while using
-- the check mode. In other words, when @--mode=check@ and @--output=anything@.
data SpecifiedOutputWithCheckMode
  = SpecifiedOutputWithCheckMode
  deriving (Eq, Show)

instance Exception.Exception SpecifiedOutputWithCheckMode where
  displayException = const "cannot use --output when --mode is check"