aboutsummaryrefslogtreecommitdiff
path: root/BuildInfo.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-05-10 14:36:35 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-05-10 14:36:35 -0400
commita0c2203baa2b2cdf8240f1c39a2cbb3a6ae39041 (patch)
treea8356671f0056a5b7b19768e0c75d819fbd30467 /BuildInfo.hs
parent0f71a1f6bd518aa71f2c647f068cf9e35be33fbc (diff)
fix build with old ghc
Diffstat (limited to 'BuildInfo.hs')
-rw-r--r--BuildInfo.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/BuildInfo.hs b/BuildInfo.hs
index 29455f61c..47dacc78b 100644
--- a/BuildInfo.hs
+++ b/BuildInfo.hs
@@ -10,6 +10,7 @@
module BuildInfo where
import Data.List
+import Data.Ord
import qualified Data.CaseInsensitive as CI
buildFlags :: [String]
@@ -86,7 +87,7 @@ buildFlags = filter (not . null)
-- Not a complete list, let alone a listing transitive deps, but only
-- the ones that are often interesting to know.
dependencyVersions :: [String]
-dependencyVersions = map fmt $ sortOn (CI.mk . fst)
+dependencyVersions = map fmt $ sortBy (comparing (CI.mk . fst))
[ ("feed", VERSION_feed)
, ("uuid", VERSION_uuid)
, ("bloomfilter", VERSION_bloomfilter)