Changeset 12573

Show
Ignore:
Timestamp:
04.10.2009 14:08:26 (5 months ago)
Author:
maeder
Message:

used nubOrd rather than just nub

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Logic/Grothendieck.hs

    r12183 r12573  
    106106 
    107107import Control.Monad (foldM) 
    108 import Data.List (nub) 
    109108import Data.Maybe (catMaybes) 
    110109import Data.Typeable 
     
    729728findComorphismPaths :: LogicGraph ->  G_sublogics -> [AnyComorphism] 
    730729findComorphismPaths lg (G_sublogics lid sub) = 
    731   nub $ map fst $ iterateComp (0::Int) [(idc,[idc])] 
     730  nubOrd $ map fst $ iterateComp (0::Int) [(idc,[idc])] 
    732731  where 
    733732  idc = Comorphism (mkIdComorphism lid sub) 
     
    737736    if n>1 || l==newL then newL else iterateComp (n+1) newL 
    738737    where 
    739     newL = nub $ l ++ concatMap extend l 
     738    newL = nubOrd $ l ++ concatMap extend l 
    740739    -- extend comorphism list in all directions, but no cylces 
    741740    extend (coMor, cmps) =