Module

Data.UUID.Random

Package
purescript-uuidv4
Repository
garyb/purescript-uuidv4

#UUIDv4 Source

data UUIDv4

A type for version 4 (random) UUIDs.

Instances

#make Source

make :: forall m. MonadEffect m => m UUIDv4

Creates a UUIDv4 using the standard Math.random.

#make' Source

make' :: forall m. Applicative m => (Int -> Int -> m Int) -> m UUIDv4

Creates a UUIDv4 using a custom function for generating random numbers.

#toString Source

toString :: UUIDv4 -> String

Prints a UUIDv4 as a string

#fromString Source

fromString :: String -> Maybe UUIDv4

Attempts to parse a UUIDv4 from a string.