making UUIDs in haskell

I scoured the web tonight for nicely formatted examples on creating UUIDs with haskell and didn't find anything suitable, so here is a minimal example that demonstrates how to create both v4 and v5 UUIDs

gist

last update 2012-02-17