Changeset 12573
- Timestamp:
- 04.10.2009 14:08:26 (5 months ago)
- Files:
-
- 1 modified
-
trunk/Logic/Grothendieck.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Logic/Grothendieck.hs
r12183 r12573 106 106 107 107 import Control.Monad (foldM) 108 import Data.List (nub)109 108 import Data.Maybe (catMaybes) 110 109 import Data.Typeable … … 729 728 findComorphismPaths :: LogicGraph -> G_sublogics -> [AnyComorphism] 730 729 findComorphismPaths lg (G_sublogics lid sub) = 731 nub $ map fst $ iterateComp (0::Int) [(idc,[idc])]730 nubOrd $ map fst $ iterateComp (0::Int) [(idc,[idc])] 732 731 where 733 732 idc = Comorphism (mkIdComorphism lid sub) … … 737 736 if n>1 || l==newL then newL else iterateComp (n+1) newL 738 737 where 739 newL = nub $ l ++ concatMap extend l738 newL = nubOrd $ l ++ concatMap extend l 740 739 -- extend comorphism list in all directions, but no cylces 741 740 extend (coMor, cmps) =