summaryrefslogtreecommitdiff
path: root/src/runtime/haskell/PGF/Forest.hs
diff options
context:
space:
mode:
authorpeter.ljunglof <peter.ljunglof@gu.se>2012-08-29 21:48:34 +0000
committerpeter.ljunglof <peter.ljunglof@gu.se>2012-08-29 21:48:34 +0000
commitb416f5bbf7a1ac6d549f68424fec3af64ce34725 (patch)
treee1fa64352974f9d715a6bf4a4157ba2dad684d1c /src/runtime/haskell/PGF/Forest.hs
parenta7de16c34b7ccffc5ae0ac4fd004dfc155b4f546 (diff)
Use nub' instead of nub in some places, remove some unused nub imports
Diffstat (limited to 'src/runtime/haskell/PGF/Forest.hs')
-rw-r--r--src/runtime/haskell/PGF/Forest.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/haskell/PGF/Forest.hs b/src/runtime/haskell/PGF/Forest.hs
index 3c4272317..5cb4ccf51 100644
--- a/src/runtime/haskell/PGF/Forest.hs
+++ b/src/runtime/haskell/PGF/Forest.hs
@@ -32,7 +32,7 @@ import qualified Data.IntSet as IntSet
import qualified Data.IntMap as IntMap
import Control.Monad
import Control.Monad.State
-import GF.Data.SortedList
+import GF.Data.Utilities (nub')
data Forest
= Forest
@@ -121,7 +121,7 @@ getAbsTrees (Forest abs cnc forest root) arg@(PArg _ fid) ty dp =
generateForForest (prove dp) e) emptyMetaStore fid
in if null res
then Left (nub err)
- else Right (nub [e | (_,_,e) <- res])
+ else Right (nub' [e | (_,_,e) <- res])
where
go rec_ scope_ mb_tty_ (PArg hypos fid)
| fid < totalCats cnc = case mb_tty of