Commit 40911ff3 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Example Cleopatre Date hack

parent 880785c0
...@@ -149,12 +149,10 @@ toMonths y m d = fromIntegral $ cdMonths ...@@ -149,12 +149,10 @@ toMonths y m d = fromIntegral $ cdMonths
$ diffGregorianDurationClip (fromGregorian y m d) $ diffGregorianDurationClip (fromGregorian y m d)
(fromGregorian 0000 0 0) (fromGregorian 0000 0 0)
toDays :: Integer -> Int -> Int -> Date toDays :: Integer -> Int -> Int -> Date
toDays y m d = fromIntegral toDays y m d = fromIntegral
$ diffDays (fromGregorian y m d) (fromGregorian 0000 0 0) $ diffDays (fromGregorian y m d) (fromGregorian 0000 0 0)
toPhyloDate :: Int -> Int -> Int -> TimeUnit -> Date toPhyloDate :: Int -> Int -> Int -> TimeUnit -> Date
toPhyloDate y m d tu = case tu of toPhyloDate y m d tu = case tu of
Year _ _ _ -> y Year _ _ _ -> y
...@@ -192,5 +190,3 @@ readJson :: FilePath -> IO Lazy.ByteString ...@@ -192,5 +190,3 @@ readJson :: FilePath -> IO Lazy.ByteString
readJson path = Lazy.readFile path readJson path = Lazy.readFile path
...@@ -108,7 +108,7 @@ config = ...@@ -108,7 +108,7 @@ config =
docs :: [Document] docs :: [Document]
docs = map (\(d,t) docs = map (\(d,t)
-> Document d -> Document (d+102)
"" ""
(filter (\n -> isRoots n (foundations ^. foundations_roots)) $ monoTexts t) (filter (\n -> isRoots n (foundations ^. foundations_roots)) $ monoTexts t)
Nothing Nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment