summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rw-r--r--Makefile7
-rw-r--r--demo.log8
-rw-r--r--git-annex.hs8
4 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..7dd8869b1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.o
+*.hi
+*.ho
+*.a
+git-annex
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..8b7c9d3a0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+git-annex:
+ ghc --make git-annex
+
+clean:
+ rm -f git-annex *.o *.hi *.ho *.a
+
+.PHONY: git-annex
diff --git a/demo.log b/demo.log
new file mode 100644
index 000000000..251a84c52
--- /dev/null
+++ b/demo.log
@@ -0,0 +1,8 @@
+1286654242 1 repo
+1286652724 0 foo
+a a a
+a 1 a
+-1 a a
+1286652724 1 foo
+1286656282 1 foo
+1286656282 0 repo
diff --git a/git-annex.hs b/git-annex.hs
new file mode 100644
index 000000000..a57e9e2db
--- /dev/null
+++ b/git-annex.hs
@@ -0,0 +1,8 @@
+{- git-annex main program
+ - -}
+
+import LocationLog
+
+main = do
+ l <- readLog "demo.log"
+ putStrLn "hi"