spooky: Unified api for phantom typed newtypes and type aliases
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.
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]
Properties
Versions | 0.1.0.0, 0.1.0.0 |
---|---|
Change log | None available |
Dependencies | base (>=4.9 && <5) [details] |
License | BSD-3-Clause |
Author | Isaac Shapira |
Maintainer | isaac.shapira@platonic.systems |
Category | data |
Source repo | head: git clone https://gitlab.com/fresheyeball/spooky.git -b master |
Uploaded | by fresheyeball at 2021-12-13T06:35:34Z |
Modules
[Index] [Quick Jump]
- Data
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 (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees