spooky: Unified API for phantom typed newtypes and type aliases
In scenarios where newtypes are not well supported, we may need to use type aliases instead for various reasons. This means we give away type safety and static analysis tooling. We can get this safety back with Spooky. When we compile with -f typed, we get a type check using newtypes. When compiled without the flag we get the same code type checking with type aliases.
[Skip to Readme]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
untyped | Should Spooky be an alias? | Disabled |
typed | Should Spooky be newtyped? | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- spooky-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0 |
---|---|
Dependencies | base (>=4.9 && <5) [details] |
License | BSD-3-Clause |
Author | Isaac Shapira |
Maintainer | isaac.shapira@platonic.systems |
Revised | Revision 1 made by fresheyeball at 2021-12-13T06:56:52Z |
Category | data |
Source repo | head: git clone https://gitlab.com/fresheyeball/spooky.git -b master |
Uploaded | by fresheyeball at 2021-12-13T06:36:13Z |
Distributions | NixOS:0.1.0.0 |
Downloads | 136 total (5 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |