packages feed

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

module CabalGild.Exception.SpecifiedStdinWithFileInput where

import qualified Control.Monad.Catch as Exception

-- | This exception is thrown when the user specifies the STDIN name while
-- using an input file. In other words, when @--input=file@ and
-- @--stdin=anything@.
data SpecifiedStdinWithFileInput
  = SpecifiedStdinWithFileInput
  deriving (Eq, Show)

instance Exception.Exception SpecifiedStdinWithFileInput where
  displayException = const "cannot use --stdin when --input is a file"