autoproc 0.1.1 → 0.1.2
raw patch · 3 files changed
+9/−8 lines, 3 filesdep ~basenew-uploaderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Autoproc.Procmail: showLn :: (Show a) => a -> String
+ Autoproc.Procmail: showLn :: Show a => a -> String
Files
- Main.hs +4/−3
- README +1/−1
- autoproc.cabal +4/−4
Main.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE ScopedTypeVariables #-} module Main (main) where import Autoproc.Configuration (defaultVariables)@@ -10,7 +11,7 @@ import System.Process (runProcess, waitForProcess) import System.Directory (getAppUserDataDirectory, getModificationTime) import Control.Monad.Trans (liftIO, MonadIO)-import Control.Exception (bracket, catch)+import Control.Exception (bracket, catch, SomeException) import Control.Monad (when) import System.Exit (ExitCode(..), exitWith) import Control.Applicative ((<$>))@@ -19,7 +20,7 @@ -- for autoproc, and if it doesn't find one, just compiles the default. -- This code and method is totally stolen from XMonad. Thanks guys! main :: IO ()-main = catch (buildLaunch) (\_ -> autoprocMain defaultVariables dagitRules)+main = catch (buildLaunch) (\(_::SomeException) -> autoprocMain defaultVariables dagitRules) -- | Build "~/.autoproc/autoproc.hs" with GHC, then execute it. If there are no -- errors, this function does not return. An exception is raised in any of@@ -80,7 +81,7 @@ doubleFork $ executeFile "xmessage" True ["-default", "okay", msg] Nothing return (status == ExitSuccess) else return True- where getModTime f = catch (Just <$> getModificationTime f) (const $ return Nothing)+ where getModTime f = catch (Just <$> getModificationTime f) (\(_::SomeException) -> return Nothing) -- | Double fork and execute an IO action (usually one of the exec family of -- functions)
README view
@@ -12,7 +12,7 @@ To get a copy of Autoproc, use - darcs get http://projects.codersbase.com/repos/autoproc+ darcs get http://code.haskell.org/autoproc If you don't have darcs do not despair, currently Autoproc is about 5 files and can be easily downloaded by pointing your web browser at the
autoproc.cabal view
@@ -1,5 +1,5 @@ name: autoproc-version: 0.1.1+version: 0.1.2 synopsis: EDSL for Procmail scripts description: Autoproc is a utility which allows you to write an email filterer in an Haskell EDSL (embedded domain specific language); autoproc will then compile@@ -10,12 +10,12 @@ license: BSD3 license-file: LICENSE author: Jason Dagit-maintainer: Jason Dagit <dagit@codersbase.com>+maintainer: Gwern Branwen <gwern0@gmail.com> homepage: http://code.haskell.org/autoproc build-type: Simple Cabal-Version: >= 1.2-tested-with: GHC==6.8.2+tested-with: GHC==6.12.3 data-files: README @@ -23,7 +23,7 @@ exposed-modules: Autoproc.Classifier, Autoproc.Configuration, Autoproc.Run, Autoproc.Procmail, Autoproc.Rules.Dagit, Autoproc.Transform - build-depends: base>3, mtl, unix, directory, process+ build-depends: base>=4 && <5, mtl, unix, directory, process ghc-options: -Wall ghc-prof-options: -prof -auto-all