The acme-smuggler package

[maintain]
Warnings:

Please see README.md


[Skip to ReadMe]

Properties

Versions0.1.0.1, 0.1.0.1
Dependenciesbase (>=4.7 && <5) [details]
LicenseBSD3
Copyright2016 Ben Clifford
AuthorBen Clifford <benc@hawaga.org.uk>
MaintainerBen Clifford <benc@hawaga.org.uk>
CategoryACME
Home pagehttps://github.com/benclifford/acme-smuggler
Source repositoryhead: git clone https://github.com/benclifford/acme-smuggler
UploadedSun Dec 11 11:11:05 UTC 2016 by benc

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for acme-smuggler-0.1.0.1

ACME Smuggler

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