From e0aff931023a6c3f7a06caaa5dfa1aad2da3889d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Apr 2014 14:04:09 -0400 Subject: merge from git-annex --- Utility/URI.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Utility/URI.hs (limited to 'Utility/URI.hs') 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 + - + - 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 -- cgit v1.2.3