The acme-smuggler package

[Tags:bsd3, library, test]

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.1
Dependencies base (>=4.7 && <5) [details]
License BSD3
Copyright 2016 Ben Clifford
Author Ben Clifford <benc@hawaga.org.uk>
Maintainer Ben Clifford <benc@hawaga.org.uk>
Stability Unknown
Category ACME
Home page https://github.com/benclifford/acme-smuggler
Source repository head: git clone https://github.com/benclifford/acme-smuggler
Uploaded Sun Dec 11 11:27:11 UTC 2016 by benc
Distributions NixOS:0.1.0.1
Downloads 30 total (6 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-12-11 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for acme-smuggler

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