moved module and relicensed
This commit is contained in:
parent
5d97898a7c
commit
2e9f128dea
9 changed files with 13 additions and 12 deletions
|
@ -15,7 +15,7 @@ import Control.Applicative
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
import Utility.Env
|
import Utility.Env
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import Utility.QuickCheck
|
import Utility.QuickCheck
|
||||||
|
|
||||||
-- | Some very old logs did not have any time stamp at all;
|
-- | Some very old logs did not have any time stamp at all;
|
||||||
|
|
|
@ -16,7 +16,7 @@ import Utility.NotificationBroadcaster
|
||||||
import Types.Transfer
|
import Types.Transfer
|
||||||
import Logs.Transfer
|
import Logs.Transfer
|
||||||
import Logs.Trust
|
import Logs.Trust
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import qualified Remote
|
import qualified Remote
|
||||||
import qualified Types.Remote as Remote
|
import qualified Types.Remote as Remote
|
||||||
import Config.DynamicConfig
|
import Config.DynamicConfig
|
||||||
|
|
|
@ -22,7 +22,7 @@ import Annex.Link
|
||||||
import Logs.Location
|
import Logs.Location
|
||||||
import Logs.Trust
|
import Logs.Trust
|
||||||
import Logs.Activity
|
import Logs.Activity
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import Logs.PreferredContent
|
import Logs.PreferredContent
|
||||||
import Annex.NumCopies
|
import Annex.NumCopies
|
||||||
import Annex.UUID
|
import Annex.UUID
|
||||||
|
|
|
@ -40,7 +40,7 @@ import Annex.VectorClock
|
||||||
import qualified Annex.Branch
|
import qualified Annex.Branch
|
||||||
import qualified Annex
|
import qualified Annex
|
||||||
import Logs
|
import Logs
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import Logs.MetaData.Pure
|
import Logs.MetaData.Pure
|
||||||
|
|
||||||
import qualified Data.Set as S
|
import qualified Data.Set as S
|
||||||
|
|
|
@ -18,7 +18,7 @@ import Utility.Metered
|
||||||
import Utility.Percentage
|
import Utility.Percentage
|
||||||
import Utility.PID
|
import Utility.PID
|
||||||
import Annex.LockPool
|
import Annex.LockPool
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import Logs.File
|
import Logs.File
|
||||||
|
|
||||||
import Data.Time.Clock
|
import Data.Time.Clock
|
||||||
|
|
|
@ -33,7 +33,7 @@ import Data.Time
|
||||||
|
|
||||||
import Annex.Common
|
import Annex.Common
|
||||||
import qualified Annex
|
import qualified Annex
|
||||||
import Logs.TimeStamp
|
import Utility.TimeStamp
|
||||||
import Logs.File
|
import Logs.File
|
||||||
|
|
||||||
-- everything that is stored in the unused log
|
-- everything that is stored in the unused log
|
||||||
|
|
|
@ -38,8 +38,9 @@ last = Prelude.last
|
||||||
|
|
||||||
{- Attempts to read a value from a String.
|
{- Attempts to read a value from a String.
|
||||||
-
|
-
|
||||||
- Unlike Text.Read.readMaybe, this ignores leading/trailing whitespace,
|
- Unlike Text.Read.readMaybe, this ignores some trailing text
|
||||||
- and throws away any trailing text after the part that can be read.
|
- after the part that can be read. However, if the trailing text looks
|
||||||
|
- like another readable value, it fails.
|
||||||
-}
|
-}
|
||||||
readish :: Read a => String -> Maybe a
|
readish :: Read a => String -> Maybe a
|
||||||
readish s = case reads s of
|
readish s = case reads s of
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{- log timestamp parsing
|
{- timestamp parsing and formatting
|
||||||
-
|
-
|
||||||
- Copyright 2015-2016 Joey Hess <id@joeyh.name>
|
- Copyright 2015-2016 Joey Hess <id@joeyh.name>
|
||||||
-
|
-
|
||||||
- Licensed under the GNU GPL version 3 or higher.
|
- License: BSD-2-clause
|
||||||
-}
|
-}
|
||||||
|
|
||||||
{-# LANGUAGE CPP #-}
|
{-# LANGUAGE CPP #-}
|
||||||
|
|
||||||
module Logs.TimeStamp where
|
module Utility.TimeStamp where
|
||||||
|
|
||||||
import Utility.PartialPrelude
|
import Utility.PartialPrelude
|
||||||
import Utility.Misc
|
import Utility.Misc
|
|
@ -879,7 +879,6 @@ Executable git-annex
|
||||||
Logs.SingleValue
|
Logs.SingleValue
|
||||||
Logs.SingleValue.Pure
|
Logs.SingleValue.Pure
|
||||||
Logs.Smudge
|
Logs.Smudge
|
||||||
Logs.TimeStamp
|
|
||||||
Logs.Transfer
|
Logs.Transfer
|
||||||
Logs.Transitions
|
Logs.Transitions
|
||||||
Logs.Trust
|
Logs.Trust
|
||||||
|
@ -1062,6 +1061,7 @@ Executable git-annex
|
||||||
Utility.SshHost
|
Utility.SshHost
|
||||||
Utility.Su
|
Utility.Su
|
||||||
Utility.SystemDirectory
|
Utility.SystemDirectory
|
||||||
|
Utility.TimeStamp
|
||||||
Utility.TList
|
Utility.TList
|
||||||
Utility.Tense
|
Utility.Tense
|
||||||
Utility.ThreadLock
|
Utility.ThreadLock
|
||||||
|
|
Loading…
Reference in a new issue