Skip to content
Snippets Groups Projects
Commit 983f86ef authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-08-25 10:30:36 by simonmar]

Little test for Eq and Ord instances of ThreadId.
parent 68146c5b
No related merge requests found
module Main where
-- !!! test Eq and Ord instances over thread Ids.
import Concurrent
main = do
tso1 <- forkIO (return ())
tso2 <- forkIO (return ())
print [compare tso1 tso2, compare tso1 tso1, compare tso2 tso1]
[LT,EQ,GT]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment