The acme-smuggler package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

Please see README.md


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.0.1
Change logNone available
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:10:39 UTC 2016 by benc

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for acme-smuggler-0.1.0.0

[back to package description]

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