Show
Ignore:
Timestamp:
28.10.2008 12:15:47 (13 months ago)
Author:
maeder
Message:

use nubOrdOn instead of nubBy

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Comorphisms/CFOL2IsabelleHOL.hs

    r10890 r10903  
    4848import Common.ProofTree 
    4949import Common.Result 
     50import Common.Utils (nubOrdOn) 
    5051 
    5152import qualified Data.Map as Map 
     
    136137                Sort_gen_ax _ _ -> False 
    137138                _ -> True) sens 
    138     unique_sort_gen_axs = List.nubBy 
    139             ( \ (Sort_gen_ax cs1 _) (Sort_gen_ax cs2 _) -> 
    140                   any (flip elem $ map newSort cs1) $ map newSort cs2 
    141             ) $ map sentence sort_gen_axs 
     139    unique_sort_gen_axs = nubOrdOn (\ (Sort_gen_ax cs _) -> 
     140                                    Set.fromList $ map newSort cs) 
     141                          $ map sentence sort_gen_axs 
    142142    (freeTypes, genTypes) = List.partition (\ (Sort_gen_ax _ b) -> b) 
    143143                            $ unique_sort_gen_axs