From 7115d1ec162b4059b3e8e8f84bd8d5898c1db025 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 14 May 2014 19:41:05 -0400 Subject: moved source code to src This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work. --- Propellor/Exception.hs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Propellor/Exception.hs (limited to 'Propellor/Exception.hs') diff --git a/Propellor/Exception.hs b/Propellor/Exception.hs deleted file mode 100644 index f6fd15f1..00000000 --- a/Propellor/Exception.hs +++ /dev/null @@ -1,18 +0,0 @@ -{-# LANGUAGE PackageImports #-} - -module Propellor.Exception where - -import qualified "MonadCatchIO-transformers" Control.Monad.CatchIO as M -import Control.Exception - -import Propellor.Types -import Propellor.Message - --- | Catches IO exceptions and returns FailedChange. -catchPropellor :: Propellor Result -> Propellor Result -catchPropellor a = either err return =<< tryPropellor a - where - err e = warningMessage (show e) >> return FailedChange - -tryPropellor :: Propellor a -> Propellor (Either IOException a) -tryPropellor = M.try -- cgit v1.3-2-g0d8e