laborantin-hs 0.1.5.0 → 0.1.5.2
raw patch · 2 files changed
+9/−8 lines, 2 filesdep ~aesondep ~laborantin-hsdep ~text
Dependency ranges changed: aeson, laborantin-hs, text
Files
- examples/main.hs +6/−5
- laborantin-hs.cabal +3/−3
examples/main.hs view
@@ -37,15 +37,16 @@ dbg "setting up scenario" run $ do ancestors "pong" >>= liftIO . print . (\n -> show n ++ " ancestor(s)") . length- (Just str :: Maybe String) <- getVar "hello"- liftIO . print . ("hello "++) $ str+ (Just who :: Maybe String) <- getVar "hello"+ liftIO . print . ("hello "++) $ who (StringParam srv) <- param "destination" case srv of "failure.example" -> err "noooo"- str -> dbg $ T.append "mimic sending ping to " str+ host -> dbg $ T.append "mimic sending ping to " host writeResult "raw-result" "a sort of result stored as a separate file" teardown $ dbg "here we could run some teardown action"- recover $ \err -> dbg $ T.append "here we could recover from error: " (T.pack $ show err)- analyze $ liftIO . print $ "analyze action"+ recover $ \e -> dbg $ T.append "here we could recover from error: " (T.pack $ show e)+ analyze $ liftIO . print $ ("analyze action" :: String) +main :: IO () main = defaultMain [ping, pong]
laborantin-hs.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: laborantin-hs-version: 0.1.5.0+version: 0.1.5.2 synopsis: an experiment management framework description: Laborantin is a framework and DSL to run and manage results from scientific@@ -62,7 +62,7 @@ exposed-modules: Laborantin, Laborantin.DSL, Laborantin.Implementation, Laborantin.Types, Laborantin.CLI, Laborantin.Query other-modules: Laborantin.Query.Parse, Laborantin.Query.Interpret other-extensions: FlexibleContexts, OverloadedStrings, TupleSections- build-depends: base >=4.6 && <4.8, transformers >=0.3 && <0.4, mtl >=2.1 && <2.2, containers >=0.5 && <0.6, text >=0.11 && <0.12, bytestring >=0.10 && <0.11, aeson >=0.6 && <0.7, uuid >=1.2 && <1.3, directory >=1.2 && <1.3, random >=1.0 && <1.1, hslogger >=1.2 && <1.3, cmdlib >= 0.3.5, split >= 0.2.2, time >= 1.4.0.1, parsec >= 3.1.0, old-locale >=1.0.0.5, async >= 2.0.1.0+ build-depends: base >=4.6 && <4.8, transformers >=0.3 && <0.4, mtl >=2.1 && <2.2, containers >=0.5 && <0.6, text >= 0.11 && <1.2, bytestring >=0.10 && <0.11, aeson >=0.6 && <0.8, uuid >=1.2 && <1.3, directory >=1.2 && <1.3, random >=1.0 && <1.1, hslogger >=1.2 && <1.3, cmdlib >= 0.3.5, split >= 0.2.2, time >= 1.4.0.1, parsec >= 3.1.0, old-locale >=1.0.0.5, async >= 2.0.1.0 -- hs-source-dirs: default-language: Haskell2010 @@ -70,5 +70,5 @@ main-is: main.hs ghc-options: -Wall hs-source-dirs: examples- build-depends: base >=4.6 && <4.8, transformers >=0.3 && <0.4, mtl >=2.1 && <2.2, containers >=0.5 && <0.6, text >=0.11 && <0.12, bytestring >=0.10 && <0.11, aeson >=0.6 && <0.7, uuid >=1.2 && <1.3, directory >=1.2 && <1.3, random >=1.0 && <1.1, hslogger >=1.2 && <1.3, cmdlib >= 0.3.5, split >= 0.2.2, laborantin-hs >= 0.1.1.2+ build-depends: base >=4.6 && <4.8, transformers >=0.3 && <0.4, mtl >=2.1 && <2.2, containers >=0.5 && <0.6, text >=0.11 && <1.2, bytestring >=0.10 && <0.11, aeson >=0.6 && <0.8, uuid >=1.2 && <1.3, directory >=1.2 && <1.3, random >=1.0 && <1.1, hslogger >=1.2 && <1.3, cmdlib >= 0.3.5, split >= 0.2.2, laborantin-hs >= 0.1.5.1 default-language: Haskell2010