git.iko.soy/distributed-process
on master help sign in
Add Ord instance to SpawnRef.

This allows us to put `SpawnRef`s in `Map`s and other nice stuff.

commitf1ad0741ab19435a1de435ccb7126268ba85bf14 authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> dateTue 20 Dec 2016, 14:50 (10 years ago) parentbd95154
1 file changed+1−1
src/Control/Distributed/Process/Internal/Types.hs+1−1
src/Control/Distributed/Process/Internal/Types.hs+1−1
@@ -629,7 +629,7 @@ newtype DidUnlinkPort = DidUnlinkPort SendPortId
629629
630630-- | 'SpawnRef' are used to return pids of spawned processes
631631newtype SpawnRef = SpawnRef Int32
632− deriving (Show, Binary, Typeable, Eq)
632+ deriving (Show, Binary, Typeable, Eq, Ord)
633633
634634-- | (Asynchronius) reply from 'spawn'
635635data DidSpawn = DidSpawn SpawnRef ProcessId