packages feed

uniformBase 0.1.0 → 0.1.3

raw patch · 4 files changed

+48/−41 lines, 4 filesdep ~uniform-algebrasdep ~uniform-errordep ~uniform-fileio

Dependency ranges changed: uniform-algebras, uniform-error, uniform-fileio, uniform-strings, uniform-time

Files

README.md view
@@ -3,4 +3,6 @@ The package imports separately compilable and usable packages. This package and all its parts are self-contained and need no further imports; no need to import the subpackages individually.  The package depends indirectly on many often used packages but some concentration is planned in the future, using other attemps with similar goals. - + v 0.1.2    +    added NoticeLevel to +        problem with ShowPretty defined differently
− UniformBase.hs
@@ -1,31 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE ExplicitNamespaces #-}--module UniformBase -    ( module UniformBase-    , module Uniform.Zero-    , module Uniform.Pointless-    , module Uniform.Error-    , module Uniform.Strings-    , module Uniform.FileIO-    -- , module Uniform.Json-    -- , module Uniform.Yaml -    , module Uniform.Time-    -- , module Uniform.Pandoc-    -- , module Uniform.StartApp   -- in package Error -    -- , module Uniform.CmdLineArgs -    -- , Uniform.FileIO-    , Generic-    ) where--import Uniform.Zero-import Uniform.Pointless-import Uniform.Strings -import Uniform.FileIO-import Uniform.Error--- import Uniform.Json--- import Uniform.Yaml hiding (encode,decode)-    -- export qualified as Y.encode, Y.decode)-import Uniform.Time -import GHC.Generics
+ src/UniformBase.hs view
@@ -0,0 +1,36 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE ExplicitNamespaces #-}+{-# LANGUAGE DeriveGeneric #-}++module UniformBase +    ( module UniformBase+    , module Uniform.Zero+    , module Uniform.Pointless+    , module Uniform.Error+    , module Uniform.Strings+    , module Uniform.FileIO+    -- , module Uniform.PathShowCase+    , module Uniform.Time+    , Generic+    -- , Read +    -- , Path (..)+    ) where++import Uniform.Zero+import Uniform.Pointless+import Uniform.Strings +import Uniform.FileIO+import Uniform.Error+import Uniform.Time +-- import Uniform.PathShowCase+import GHC.Generics++-- TODO move ++data NoticeLevel = NoticeLevel0 | NoticeLevel1 | NoticeLevel2 deriving (Eq, Ord, Show, Read, Generic)+instance Zeros NoticeLevel where zero = NoticeLevel0 +inform, informNone, informAll :: NoticeLevel -> Bool+inform =  not . isZero+informNone = const False  -- to use with: when (informNone debug)+informAll = const True 
uniformBase.cabal view
@@ -1,13 +1,13 @@ cabal-version: 2.2 --- This file has been generated from package.yaml by hpack version 0.34.2.+-- This file has been generated from package.yaml by hpack version 0.34.6. -- -- see: https://github.com/sol/hpack ----- hash: 073686ee4318f7ee34ee1f331f377f809c2cf836ab6e01f497d375357df63fcc+-- hash: 14472c4593981cb3a8236b897e1f32c7d057dba3ff56d28ca41e124f541c29f4  name:           uniformBase-version:        0.1.0+version:        0.1.3 synopsis:       A uniform base to build apps on description:    Goals:                 .@@ -55,13 +55,13 @@   other-modules:       Paths_uniformBase   hs-source-dirs:-      ./.+      src   build-depends:       base >=4.7 && <5-    , uniform-algebras-    , uniform-error-    , uniform-fileio-    , uniform-strings-    , uniform-time+    , uniform-algebras >=0.1.2+    , uniform-error >=0.1.0+    , uniform-fileio >=0.1.2+    , uniform-strings >=0.1.2+    , uniform-time >=0.1.0   default-language: Haskell2010   autogen-modules: Paths_uniformBase