Smuggle arbitrary values in () https://github.com/benclifford/acme-smuggler
|Latest on Hackage:||0.1.0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
The () type has only one value, also called () with no internal structure.
Nevertheless, acme-smuggler allows you to smuggle arbitrary values into () and discover them later:
> x = smuggle "hello" > :t x x :: () > y = smuggle (7 :: Integer) > :t y y :: () > discover x :: Maybe String Just "hello" > discover y :: Maybe Integer Just 7 > discover x :: Maybe Integer Nothing