snowchecked-0.0.2.0: A checksummed variation on Twitter's Snowflake UID generation algorithm
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Snowchecked.Encoding.Class

Synopsis

Documentation

class IsFlake a where Source #

The class of things that can be generated from and to a Flake.

Minimal complete definition

fromFlake, (parseFish | parseFlake)

data Flakeish Source #

Something that might be a Flake. The fields might not be truncated to the appropriate size.

goodFish :: SnowcheckedConfig -> Flakeish -> Bool Source #

Is this Flakeish valid under the given SnowcheckedConfig settings?