Safe Haskell | None |
---|---|
Language | Haskell2010 |
A small helper to generate GUIDs.
Provides functions to generate simple GUIDs.
- data GUID
- newGuid :: IO GUID
- hashTriple :: IO (Integer, UTCTime, Integer)
- newGuidInt :: IO Int
- newGuidString :: IO String
- newGuidText :: IO Text
- makeEJsonId :: GUID -> EJsonValue
- ejson2guid :: EJsonValue -> Maybe GUID
- guid2SubReady :: GUID -> EJsonValue
- guid2NoSub :: GUID -> EJsonValue
Documentation
newGuidInt :: IO Int Source
newGuidText :: IO Text Source
makeEJsonId :: GUID -> EJsonValue Source
ejson2guid :: EJsonValue -> Maybe GUID Source
guid2SubReady :: GUID -> EJsonValue Source
Construct a matcher for subscription-ready based on ID.
TODO: Allow for propper matcher behavior and abstraction a-la clojure's midje methods. This is important as there could be multiple subscription ids listed here...
guid2NoSub :: GUID -> EJsonValue Source
Construct a matcher for subscription failure based on ID.