aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-12 15:52:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-12 15:52:18 -0400
commit759f146d0fd5857cbbb796367c3dd8c695550b46 (patch)
tree86efbb534c747c7376e6ff62344a86665ab00995
parentd257bad93c4ae6f8e6ef6a9c848e63d0f46eb225 (diff)
update
-rw-r--r--Annex.hs7
-rw-r--r--Types.hs14
2 files changed, 15 insertions, 6 deletions
diff --git a/Annex.hs b/Annex.hs
index f695985e1..830f61919 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -22,12 +22,7 @@ import Backend
import BackendList
import UUID
import LocationLog
-
--- git-annex's runtime state
-data State = State {
- repo :: GitRepo,
- backends :: [Backend]
-}
+import Types
{- An annexed file's content is stored somewhere under .git/annex/ -}
annexDir :: GitRepo -> Key -> FilePath
diff --git a/Types.hs b/Types.hs
new file mode 100644
index 000000000..df9588027
--- /dev/null
+++ b/Types.hs
@@ -0,0 +1,14 @@
+{- git-annex core data types -}
+
+module Types (
+ State(..)
+) where
+
+import BackendType
+import GitRepo
+
+-- git-annex's runtime state
+data State = State {
+ repo :: GitRepo,
+ backends :: [Backend]
+}