The dynamic-object package
This package aims to combine the merit of Haskell's open, strong type system with flexible Object-oriented programming found in dynamically-typed languages such as python or ruby.
Objects are implemented as Maps from method keys to values. Each key specifies its own value types. You can add new members at runtime, for any instances of the object (singleton class). At the same time, you have typed and runtime-error-free access to the members (duck typing).
See Data.Object.Dynamic.Examples.PointParticle for examples.
Properties
| Versions | 0.1.0.0, 0.1.0.1, 0.2, 0.2.0.1, 0.2.1 |
|---|---|
| Dependencies | base (≥4.5 & <5), containers (≥0.4), lens (≥3.7.1.2), QuickCheck, text, transformers (≥0.3) |
| License | BSD3 |
| Author | Takayuki Muranushi |
| Maintainer | muranushi@gmail.com |
| Category | Data |
| Source repository | git clone https://github.com/nushio3/dynamic-object |
| Upload date | Thu Jan 10 10:52:15 UTC 2013 |
| Uploaded by | TakayukiMuranushi |
| Built on | ghc-7.6 |
Modules
Downloads
- dynamic-object-0.2.0.1.tar.gz (Cabal source package)
- package description (included in the package)