Tweaked a name
authorNeil Smith <neil.git@njae.me.uk>
Tue, 2 Oct 2018 10:31:09 +0000 (11:31 +0100)
committerNeil Smith <neil.git@njae.me.uk>
Tue, 2 Oct 2018 10:31:09 +0000 (11:31 +0100)
src/task6/task6-monad.hs

index df52ed1410b40a343846705d582028d381b30d7d..50aca558fa21e9d4a6c4f40cc58d341458d630e1 100644 (file)
@@ -66,10 +66,10 @@ execGroups (State st) = fst $ st M.empty
 
 -- including all the friendships is just a monadic fold
 mergeFriendships :: [(Name, Name)] -> State ()
-mergeFriendships pairs = foldM_ includeFriendshipM () pairs
+mergeFriendships pairs = foldM_ includeFriendship () pairs
 
-includeFriendshipM :: () -> (Name, Name) -> State ()
-includeFriendshipM _ (thisPerson, thatPerson) = do
+includeFriendship :: () -> (Name, Name) -> State ()
+includeFriendship _ (thisPerson, thatPerson) = do
     include thisPerson
     include thatPerson
     thisExemplar <- exemplar thisPerson