summaryrefslogtreecommitdiff
path: root/Utility/URI.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-04-23 14:04:09 -0400
committerJoey Hess <joey@kitenet.net>2014-04-23 14:04:09 -0400
commite0aff931023a6c3f7a06caaa5dfa1aad2da3889d (patch)
treef1960ca033d5196da417e7c4d1f0e579bdc21e46 /Utility/URI.hs
parent232fce59fabc4243c9b9d7944589986c5cc73f16 (diff)
downloadgit-repair-e0aff931023a6c3f7a06caaa5dfa1aad2da3889d.tar.gz
merge from git-annex
Diffstat (limited to 'Utility/URI.hs')
-rw-r--r--Utility/URI.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Utility/URI.hs b/Utility/URI.hs
new file mode 100644
index 0000000..39c2f22
--- /dev/null
+++ b/Utility/URI.hs
@@ -0,0 +1,18 @@
+{- Network.URI
+ -
+ - Copyright 2014 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+{-# LANGUAGE CPP #-}
+
+module Utility.URI where
+
+-- Old versions of network lacked an Ord for URI
+#if ! MIN_VERSION_network(2,4,0)
+import Network.URI
+
+instance Ord URI where
+ a `compare` b = show a `compare` show b
+#endif