packages feed

snaplet-environments 0.1 → 0.1.1

raw patch · 2 files changed

+17/−17 lines, 2 filesdep −haskell98dep ~configuratordep ~regex-tdfadep ~unordered-containers

Dependencies removed: haskell98

Dependency ranges changed: configurator, regex-tdfa, unordered-containers

Files

snaplet-environments.cabal view
@@ -7,10 +7,10 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.1+Version:             0.1.1  -- A short (one-line) description of the package.-Synopsis:            Provides ability to easly read configuration based on given app environment given at command line, envs are defined in app configuration file+Synopsis:            DEPRECATED! You should use standard Snap >= 0.9 "environments" functionality. It provided ability to easly read configuration based on given app environment given at command line, envs are defined in app configuration file  -- A longer description of the package. -- Description:         @@ -54,13 +54,12 @@   Build-depends:     base >= 4 && < 5,     snap == 0.7.*,-    snap-core   == 0.7.*,+    snap-core  == 0.7.*,     mtl >= 2 && < 3,-    configurator == 0.2.0.0,-    regex-tdfa == 1.1.8,-    unordered-containers == 0.1.4.3,+    configurator >= 0.2 && < 0.3,+    regex-tdfa >= 1.1.8 && < 1.2, +    unordered-containers >= 0.1.4.3 && < 0.2,     text >= 0.11 && < 0.12,-    haskell98 == 1.1.0.1,     bson == 0.1.6      -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
src/Snap/Snaplet/Environments.hs view
@@ -1,19 +1,20 @@-module Snap.Snaplet.Environments( module Data.Configurator, lookupEnvDefault, module Snap.Snaplet.Environments.Instances ) where--import           System (getArgs) +module Snap.Snaplet.Environments+    ( module Data.Configurator+    , lookupEnvDefault+    , module Snap.Snaplet.Environments.Instances ) +    where  import           Control.Monad.Reader--import           Snap.Snaplet import           Data.Configurator import           Data.Configurator.Types-+import qualified Data.HashMap.Lazy                   as HM+import           Data.List                           (filter, find)+import qualified Data.Text                           as T+import           Snap.Snaplet import           Snap.Snaplet.Environments.Instances--import qualified Data.Text as T-import qualified Data.HashMap.Lazy as HM-import           Data.List (filter, find)+import           System.Environment                  (getArgs) import           Text.Regex.TDFA+  -- | This function takes current env subconfig and at its base --   looks up given name