Created
December 29, 2011 02:26
-
-
Save wavewave/1531274 to your computer and use it in GitHub Desktop.
uuid generation test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE OverloadedStrings #-} | |
| import Data.UUID.V5 | |
| import qualified Data.ByteString as B | |
| import qualified Data.ByteString.Char8 as C | |
| main :: IO () | |
| main = do | |
| putStrLn "uuid creation test" | |
| let str = "test" | |
| newuuid = generateNamed namespaceURL (B.unpack str) | |
| putStrLn . show $ newuuid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment