coquina 0.1.0.0 → 0.1.0.1
raw patch · 5 files changed
+23/−11 lines, 5 filesdep ~basedep ~bytestringdep ~containersPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, bytestring, containers, deepseq, filepath, mtl, text, transformers
API changes (from Hackage documentation)
- Coquina: Shell :: ExceptT Int (WriterT (Text, Text) m) a -> Shell m a
+ Coquina: Shell :: ExceptT Int (WriterT (Text, Text) m) a -> Shell (m :: Type -> Type) a
- Coquina: StreamingProcess :: !Shell m ExitCode -> !Shell m () -> !Shell m (Maybe ExitCode) -> StreamingProcess m
+ Coquina: StreamingProcess :: !Shell m ExitCode -> !Shell m () -> !Shell m (Maybe ExitCode) -> StreamingProcess (m :: Type -> Type)
- Coquina: [_streamingProcess_getProcessExitCode] :: StreamingProcess m -> !Shell m (Maybe ExitCode)
+ Coquina: [_streamingProcess_getProcessExitCode] :: StreamingProcess (m :: Type -> Type) -> !Shell m (Maybe ExitCode)
- Coquina: [_streamingProcess_terminateProcess] :: StreamingProcess m -> !Shell m ()
+ Coquina: [_streamingProcess_terminateProcess] :: StreamingProcess (m :: Type -> Type) -> !Shell m ()
- Coquina: [_streamingProcess_waitForProcess] :: StreamingProcess m -> !Shell m ExitCode
+ Coquina: [_streamingProcess_waitForProcess] :: StreamingProcess (m :: Type -> Type) -> !Shell m ExitCode
- Coquina: [unShell] :: Shell m a -> ExceptT Int (WriterT (Text, Text) m) a
+ Coquina: [unShell] :: Shell (m :: Type -> Type) a -> ExceptT Int (WriterT (Text, Text) m) a
- Coquina: class Monad m => MonadShell m
+ Coquina: class Monad m => MonadShell (m :: Type -> Type)
- Coquina: data StreamingProcess m
+ Coquina: data StreamingProcess (m :: Type -> Type)
- Coquina: hoistShell :: (forall x. m x -> n x) -> Shell m a -> Shell n a
+ Coquina: hoistShell :: (forall x. () => m x -> n x) -> Shell m a -> Shell n a
- Coquina: inTempDirectory :: MonadIO m => String -> (FilePath -> Shell IO a) -> Shell m a
+ Coquina: inTempDirectory :: forall (m :: Type -> Type) a. MonadIO m => String -> (FilePath -> Shell IO a) -> Shell m a
- Coquina: newtype Shell m a
+ Coquina: newtype Shell (m :: Type -> Type) a
- Coquina: run :: MonadIO m => CreateProcess -> Shell m ()
+ Coquina: run :: forall (m :: Type -> Type). MonadIO m => CreateProcess -> Shell m ()
- Coquina: shellCreateProcess :: MonadIO m => CreateProcess -> Shell m ()
+ Coquina: shellCreateProcess :: forall (m :: Type -> Type). MonadIO m => CreateProcess -> Shell m ()
- Coquina: shellCreateProcessWith :: MonadIO m => (CreateProcess -> IO (ExitCode, Text, Text)) -> CreateProcess -> Shell m ()
+ Coquina: shellCreateProcessWith :: forall (m :: Type -> Type). MonadIO m => (CreateProcess -> IO (ExitCode, Text, Text)) -> CreateProcess -> Shell m ()
- Coquina: shellCreateProcessWithEnv :: MonadIO m => Map String String -> CreateProcess -> Shell m ()
+ Coquina: shellCreateProcessWithEnv :: forall (m :: Type -> Type). MonadIO m => Map String String -> CreateProcess -> Shell m ()
- Coquina: shellCreateProcessWithStdOut :: MonadIO m => Handle -> CreateProcess -> Shell m ()
+ Coquina: shellCreateProcessWithStdOut :: forall (m :: Type -> Type). MonadIO m => Handle -> CreateProcess -> Shell m ()
- Coquina: shellStreamableProcess :: (MonadIO m, MonadMask m) => (ByteString -> IO ()) -> (ByteString -> IO ()) -> CreateProcess -> Shell m (StreamingProcess m)
+ Coquina: shellStreamableProcess :: forall (m :: Type -> Type). (MonadIO m, MonadMask m) => (ByteString -> IO ()) -> (ByteString -> IO ()) -> CreateProcess -> Shell m (StreamingProcess m)
- Coquina: shellStreamableProcessBuffered :: (MonadIO m, MonadMask m) => CreateProcess -> Shell m (StreamingProcess m, IO ByteString, IO ByteString)
+ Coquina: shellStreamableProcessBuffered :: forall (m :: Type -> Type). (MonadIO m, MonadMask m) => CreateProcess -> Shell m (StreamingProcess m, IO ByteString, IO ByteString)
Files
- CHANGELOG.md +4/−0
- README.lhs +3/−0
- README.md +3/−0
- coquina.cabal +10/−10
- src/Coquina.hs +3/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for coquina +## 0.1.0.1++* Loosen version bounds+ ## 0.1.0.0 * First version. A few simple functions for running shell commands and
README.lhs view
@@ -1,3 +1,6 @@+# MOVED TO [GITHUB](https://github.com/obsidiansystems/coquina)++ # coquina [](https://haskell.org) [](https://hackage.haskell.org/package/coquina) [](https://matrix.hackage.haskell.org/#/package/coquina) [](https://github.com/obsidiansystems/coquina/actions) [](https://github.com/obsidiansystems/coquina/blob/master/LICENSE)
README.md view
@@ -1,3 +1,6 @@+# MOVED TO [GITHUB](https://github.com/obsidiansystems/coquina)++ # coquina [](https://haskell.org) [](https://hackage.haskell.org/package/coquina) [](https://matrix.hackage.haskell.org/#/package/coquina) [](https://github.com/obsidiansystems/coquina/actions) [](https://github.com/obsidiansystems/coquina/blob/master/LICENSE)
coquina.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: coquina-version: 0.1.0.0+version: 0.1.0.1 synopsis: Yet another shell monad. description: A simple monad for shelling out from Haskell programs. bug-reports: https://github.com/obsidiansystems/coquina/issues@@ -20,20 +20,20 @@ hs-source-dirs: src build-depends: async >=2.2.2 && <2.3- , base >=4.12.0 && <4.15- , bytestring >=0.10.8 && <0.11- , containers >=0.6.0 && <0.7- , deepseq >=1.4.4 && <1.5+ , base >=4.12.0 && <4.20+ , bytestring >=0.10.8 && <0.13+ , containers >=0.6.0 && <0.8+ , deepseq >=1.4.4 && <1.6 , directory >=1.3.3 && <1.4 , exceptions >=0.10.3 && <0.11- , filepath >=1.4.2 && <1.5- , monad-logger >=0.3 && <0.4- , mtl >=2.2.2 && <2.3+ , filepath >=1.4.2 && <1.6+ , monad-logger >= 0.3 && <0.4+ , mtl >=2.2.2 && <2.4 , process >=1.6.5 && <1.7 , stm >=2.5.0 && <2.6 , temporary >=1.3 && <1.4- , text >=1.2.3 && <1.3- , transformers >=0.5 && <0.6+ , text >=1.2.3 && <2.2+ , transformers >=0.5 && <0.7 exposed-modules: Coquina
src/Coquina.hs view
@@ -53,8 +53,10 @@ import qualified Control.Concurrent.Async as Async import Control.DeepSeq (rnf) import Control.Exception (evaluate)+import Control.Monad import Control.Monad.Catch (MonadCatch, MonadMask, MonadThrow, finally)-import Control.Monad.Except (MonadError, ExceptT, throwError, runExceptT)+import Control.Monad.Except (ExceptT, MonadError, runExceptT, throwError)+import Control.Monad.Fix import Control.Monad.Logger (MonadLogger) import Control.Monad.Trans.Except (mapExceptT) import Control.Monad.Writer