snowflake-core-0.1.0.0: Initial project template from stack
Snowflake
type Timestamp = Int64 Source #
data Conf Source #
Constructors
Fields
Instances
Methods
showsPrec :: Int -> Conf -> ShowS #
show :: Conf -> String #
showList :: [Conf] -> ShowS #
data IdWorker Source #
showsPrec :: Int -> IdWorker -> ShowS #
show :: IdWorker -> String #
showList :: [IdWorker] -> ShowS #
defaultConf :: Conf Source #
next :: IdWorker -> Timestamp -> (Maybe Int64, IdWorker) Source #
nexts :: IdWorker -> Int -> IO ([Int64], IdWorker) Source #