Use nub' instead of nub in some places, remove some unused nub imports

This commit is contained in:
peter.ljunglof
2012-08-29 21:48:34 +00:00
parent 87260365c7
commit f78505d88e
6 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -8,7 +8,7 @@ import PGF.CId
import PGF.Data
import PGF.Macros
import Data.Maybe
import Data.List (mapAccumL, nub)
import Data.List (mapAccumL)
import Data.Array.IArray
import Data.Array.MArray
import Data.Array.ST