@@ -1,6 +1,7 @@
11{-# LANGUAGE CPP #-}
22{-# LANGUAGE RankNTypes #-}
33{-# LANGUAGE DeriveDataTypeable #-}
4+{-# LANGUAGE DeriveFunctor #-}
45{-# LANGUAGE ScopedTypeVariables #-}
56{-# LANGUAGE ExistentialQuantification #-}
67{-# LANGUAGE BangPatterns #-}
@@ -374,6 +375,7 @@ mergePortsRR = \ps -> do
374375
375376-- | Opaque type used in 'receiveWait' and 'receiveTimeout'
376377newtype Match b = Match { unMatch :: MatchOn Message (Process b) }
378+ deriving (Functor)
377379
378380-- | Test the matches in order against each message in the queue
379381receiveWait :: [Match b] -> Process b