marvin 0.0.8 → 0.0.9
raw patch · 2 files changed
+6/−3 lines, 2 filesdep ~marvin
Dependency ranges changed: marvin
Files
- marvin.cabal +2/−2
- src/Marvin/Internal/Types.hs +4/−1
marvin.cabal view
@@ -1,5 +1,5 @@ name: marvin-version: 0.0.8+version: 0.0.9 cabal-version: >=1.10 build-type: Simple license: BSD3@@ -89,7 +89,7 @@ mustache ==2.1.*, directory >=1.2.6.2 && <1.3, filepath >=1.4.1.0 && <1.5,- marvin >=0.0.8 && <0.1,+ marvin >=0.0.9 && <0.1, configurator >=0.3.0.0 && <0.4, optparse-applicative >=0.12.1.0 && <0.13, bytestring >=0.10.8.1 && <0.11,
src/Marvin/Internal/Types.hs view
@@ -78,7 +78,10 @@ timestampFromNumber :: Value -> Parser TimeStamp-timestampFromNumber = withScientific "expected number type" $ return . TimeStamp . posixSecondsToUTCTime . realToFrac+timestampFromNumber (Number n) = return $ TimeStamp $ posixSecondsToUTCTime $ realToFrac n+timestampFromNumber (String s) = maybe mzero (return . TimeStamp . posixSecondsToUTCTime . realToFrac) (readMaybe (T.unpack s) :: Maybe Double)+timestampFromNumber _ = mzero+ -- | A type, basically a String, which identifies a script to the config and the logging facilities.