Skip to content

Commit dc53dee

Browse files
committed
use foldrWithKey instead of foldWithKey to eliminate warnings
1 parent 69cb2ef commit dc53dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Connections.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Connections where
55
import Control.Applicative
66
import Data.List
77
import Data.Map (Map,(!),keys,fromList,toList,mapKeys,elems,intersectionWith
8-
,unionWith,singleton,foldWithKey,assocs,mapWithKey
8+
,unionWith,singleton,foldrWithKey,assocs,mapWithKey
99
,filterWithKey,member)
1010
import Data.Set (Set,isProperSubsetOf)
1111
import qualified Data.Map as Map
@@ -373,7 +373,7 @@ instance Nominal Formula where
373373
swap (psi1 :\/: psi2) (i,j) = swap psi1 (i,j) :\/: swap psi2 (i,j)
374374

375375
face :: Nominal a => a -> Face -> a
376-
face = foldWithKey (\i d a -> act a (i,Dir d))
376+
face = foldrWithKey (\i d a -> act a (i,Dir d))
377377

378378
-- the faces should be incomparable
379379
type System a = Map Face a

0 commit comments

Comments
 (0)