uniform-error 0.1.3.1 → 0.1.5.1
raw patch · 3 files changed
+69/−15 lines, 3 filesdep +data-defaultdep ~uniform-stringsPVP ok
version bump matches the API change (PVP)
Dependencies added: data-default
Dependency ranges changed: uniform-strings
API changes (from Hackage documentation)
+ Uniform.NoticeLevel: NoticeLevel0 :: NoticeLevel
+ Uniform.NoticeLevel: NoticeLevel1 :: NoticeLevel
+ Uniform.NoticeLevel: NoticeLevel2 :: NoticeLevel
+ Uniform.NoticeLevel: data NoticeLevel
+ Uniform.NoticeLevel: inform :: NoticeLevel -> Bool
+ Uniform.NoticeLevel: informAll :: NoticeLevel -> Bool
+ Uniform.NoticeLevel: informNone :: NoticeLevel -> Bool
+ Uniform.NoticeLevel: instance Data.Default.Class.Default Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance GHC.Classes.Eq Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance GHC.Classes.Ord Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance GHC.Generics.Generic Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance GHC.Read.Read Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance GHC.Show.Show Uniform.NoticeLevel.NoticeLevel
+ Uniform.NoticeLevel: instance Uniform.Zero.Zeros Uniform.NoticeLevel.NoticeLevel
Files
- ChangeLog.md +15/−8
- Uniform/NoticeLevel.hs +41/−0
- uniform-error.cabal +13/−7
ChangeLog.md view
@@ -1,15 +1,22 @@-0.0.10- move from the 0.0.9 versions in Workspace8 2019- change to uniform approach:- test/Testing.hs- .ghci - cleaned +0.0.10 + move from the 0.0.9 versions in Workspace8 2019 + change to uniform approach: + test/Testing.hs + .ghci + cleaned + 0.0.10.1 added (moved) startApp from + 0.1.0 cleaned and removed unnecessary comments and functions 0.1.2 moved to Control.Monad.Exception-0.1.3 some improvements, pushed on hackage++0.1.3 some improvements, pushed on hackage added stack build for 19.16 (9.0.2) -0.1.3.1 maintenance to fix #1 -- checked with ghc 8.10.7+0.1.3.1 maintenance to fix #1 -- checked with ghc 8.10.7 import HTF (Test.Framework.HUnitWrapper) unqualified to get the asserts (export in HTF 0.15.0.0 changed see the change log)++0.1.3.2 moved the NoticeLevel to a module in uniform-error++0.1.5.1 for ghc 9.2.5
+ Uniform/NoticeLevel.hs view
@@ -0,0 +1,41 @@+----------------------------------------------------------------------+--+-- Module : Uniform.NoticeLevel+-- a simplistic idea to control the amount of output +-- helping with debug +--+----------------------------------------------------------------------++ {-# LANGUAGE BangPatterns #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE PackageImports #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE UndecidableInstances #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE DeriveGeneric #-}++{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}+-- runErrorT is depreceiated but used in monads-tf+{-# OPTIONS_GHC -w #-}++module Uniform.NoticeLevel+ ( module Uniform.NoticeLevel+ )+where++ +import Uniform.Strings hiding (S, (<.>), (</>))+import Data.Default+import GHC.Generics++data NoticeLevel = NoticeLevel0 | NoticeLevel1 | NoticeLevel2 deriving (Eq, Ord, Show, Read, Generic)+instance Zeros NoticeLevel where zero = NoticeLevel0 +instance Default NoticeLevel where + def = NoticeLevel2 ++inform, informNone, informAll :: NoticeLevel -> Bool+inform = not . isZero+informNone = const False -- to use with: when (informNone debug)+informAll = const True
uniform-error.cabal view
@@ -1,22 +1,21 @@ cabal-version: 2.2 --- This file has been generated from package.yaml by hpack version 0.35.0.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack ----- hash: 71fb216a1b3ede5ebc2f311150235a8675f51d329d38fc1c2ee3a88a916ef8d9+-- hash: 04c7eb729e6ca2692054929f92a15ea8782725700adbaa1e5e66b4b8d4cd15d9 name: uniform-error-version: 0.1.3.1+version: 0.1.5.1 synopsis: Handling errors in the uniform framework description: A minimal package to handle errors and exception in a simple but flexible way. Includes functions to adapt the prefered method of calling IO with error handling (ErrIO) to the approaches encountered in other packages when writing applications. .- 0.1.3 added stack build lts 19.16 for ghc 9.0.2- . Please see the README on GitHub at <https://github.com/andrewufrank/uniform-error/readme> category: Error Exception Uniform+homepage: https://github.com/github.com:andrewufrank/uniform-error.git#readme bug-reports: https://github.com/andrewufrank/uniform-error/issues author: Andrew Frank maintainer: Andrew U. Frank <uniform@gerastree.at>@@ -27,18 +26,24 @@ README.md ChangeLog.md +source-repository head+ type: git+ location: https://github.com/github.com:andrewufrank/uniform-error.git+ library exposed-modules: Uniform.Error+ Uniform.NoticeLevel other-modules: Paths_uniform_error hs-source-dirs: ./ build-depends: base >=4.7 && <5+ , data-default , safe , transformers- , uniform-strings >=0.1.3+ , uniform-strings >=0.1.5 default-language: Haskell2010 autogen-modules: Paths_uniform_error @@ -56,8 +61,9 @@ build-depends: HTF , base >=4.7 && <5+ , data-default , safe , transformers , uniform-error- , uniform-strings >=0.1.3+ , uniform-strings >=0.1.5 default-language: Haskell2010