hw-prelude 0.0.0.4 → 0.0.1.0
raw patch · 4 files changed
+17/−22 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- HaskellWorks.Error.Types.All: GenericError :: Text -> GenericError
- HaskellWorks.Error.Types.All: TimedOut :: Text -> TimedOut
- HaskellWorks.Error.Types.All: [$sel:message:GenericError] :: GenericError -> Text
- HaskellWorks.Error.Types.All: [$sel:message:TimedOut] :: TimedOut -> Text
- HaskellWorks.Error.Types.All: newtype GenericError
- HaskellWorks.Error.Types.All: newtype TimedOut
+ HaskellWorks.Error.Types: [$sel:message:GenericError] :: GenericError -> Text
+ HaskellWorks.Error.Types: [$sel:message:TimedOut] :: TimedOut -> Text
Files
- hw-prelude.cabal +4/−2
- src/HaskellWorks/Error.hs +4/−4
- src/HaskellWorks/Error/Types.hs +9/−6
- src/HaskellWorks/Error/Types/All.hs +0/−10
hw-prelude.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.4 name: hw-prelude-version: 0.0.0.4+version: 0.0.1.0 synopsis: Opinionated prelude library description: Opinionated prelude library. license: Apache-2.0@@ -53,12 +53,15 @@ FlexibleContexts FlexibleInstances LambdaCase+ NoFieldSelectors NoImplicitPrelude+ OverloadedRecordDot OverloadedStrings RankNTypes ScopedTypeVariables TypeApplications TypeOperators+ TypeSynonymInstances ghc-options: -Wall if flag(werror)@@ -88,7 +91,6 @@ HaskellWorks.Data.String HaskellWorks.Error HaskellWorks.Error.Types- HaskellWorks.Error.Types.All HaskellWorks.Error.Types.GenericError HaskellWorks.Error.Types.TimedOut HaskellWorks.IO.Network.NamedPipe
src/HaskellWorks/Error.hs view
@@ -67,7 +67,7 @@ onLeftM_ f action = onLeft_ f =<< action -- | Handle the case where a list with many (more than one) elements.-onMany :: forall a m.()+onMany :: forall a m. () => Monad m => (NonEmpty a -> m (Maybe a)) -> [a]@@ -78,7 +78,7 @@ (x : xs) -> h (x :| xs) -- | Handle the case where an effectul function returns a list with many (more than one) elements.-onManyM :: forall a m.()+onManyM :: forall a m. () => Monad m => (NonEmpty a -> m (Maybe a)) -> m [a]@@ -87,7 +87,7 @@ f >>= onMany h -- | Handle the case where a list with many (more than one) elements.-onMany_ :: forall a m.()+onMany_ :: forall a m. () => Monad m => m (Maybe a) -> [a]@@ -98,7 +98,7 @@ _ -> h -- | Handle the case where an effectul function returns a list with many (more than one) elements.-onManyM_ :: forall a m.()+onManyM_ :: forall a m. () => Monad m => m (Maybe a) -> m [a]
src/HaskellWorks/Error/Types.hs view
@@ -1,7 +1,10 @@-module HaskellWorks.Error.Types- ( -- * Error types- GenericError(GenericError),- TimedOut(TimedOut),- ) where+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE TypeSynonymInstances #-} -import HaskellWorks.Error.Types.All+module HaskellWorks.Error.Types (+ GenericError (..),+ TimedOut(..),+) where++import HaskellWorks.Error.Types.GenericError+import HaskellWorks.Error.Types.TimedOut
− src/HaskellWorks/Error/Types/All.hs
@@ -1,10 +0,0 @@-{-# LANGUAGE DuplicateRecordFields #-}-{-# LANGUAGE TypeSynonymInstances #-}--module HaskellWorks.Error.Types.All (- GenericError (..),- TimedOut(..),-) where--import HaskellWorks.Error.Types.GenericError-import HaskellWorks.Error.Types.TimedOut