fix build with old version of Data.Set that lacks toDescList

This commit is contained in:
Joey Hess 2014-02-21 11:30:31 -04:00
parent 1f6f034e90
commit bdfc8e1f44

View file

@ -24,6 +24,7 @@
-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE CPP #-}
module Logs.MetaData (
getCurrentMetaData,
@ -120,7 +121,11 @@ simplifyLog s = case sl of
else s
_ -> s
where
#if MIN_VERSION_containers(0,5,0)
sl = S.toDescList s
#else
sl = reverse (S.toAscList s)
#endif
go c _ [] = c
go c newer (l:ls)