From a7de16c34b7ccffc5ae0ac4fd004dfc155b4f546 Mon Sep 17 00:00:00 2001 From: "peter.ljunglof" Date: Wed, 29 Aug 2012 21:45:10 +0000 Subject: Added an O(n log n) version of nub The new nub is called nub', and it replaces the old sortNub which was not lazy and did not retain the order between the elements. --- src/compiler/GF/Compile/GeneratePMCFG.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Compile') diff --git a/src/compiler/GF/Compile/GeneratePMCFG.hs b/src/compiler/GF/Compile/GeneratePMCFG.hs index 0dcb8c8cd..bb4c5b549 100644 --- a/src/compiler/GF/Compile/GeneratePMCFG.hs +++ b/src/compiler/GF/Compile/GeneratePMCFG.hs @@ -22,7 +22,7 @@ import GF.Grammar.Lookup import GF.Grammar.Predef import GF.Data.BacktrackM import GF.Data.Operations -import GF.Data.Utilities (updateNthM, updateNth, sortNub) +import GF.Data.Utilities (updateNthM, updateNth) import System.IO import qualified Data.Map as Map -- cgit v1.2.3