prelude-edsl
An EDSL-motivated subset of the Prelude
"Prelude.EDSL" exports a small subset of the "Prelude":
some standard types and classes plus a small number of
convenience functions.
The motivation for this module is that it is common for
deeply embedded domain-specific languages (EDSLs) to
redefine identifiers from the "Prelude", so EDSL users must
hide the "Prelude" in their programs. However, there are
certain useful things from the "Prelude" that are usually
not redefined -- function composition being one example --
so it becomes quite awkward to have to hide everything from
the "Prelude".
The reason for exporting e.g the @Num@ class but not @Ord@
is that it is possible to give an instance for deep
embeddings of the former but not the latter. For example,
assuming @Exp@ is the type of a deep embedding, we can have
> (+) :: Exp -> Exp -> Exp
but not
> (<) :: Exp -> Exp -> Exp
(because @(<)@ has a @Bool@ result, regardless of the type
of the arguments).
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.4 | 2016-04-20 12:19 UTC | EmilAxelsson | +9/−5 lines, 2 filesPVP ok | |
| 0.3.1 | 2015-12-17 10:11 UTC | EmilAxelsson | +2/−1 lines, 2 filesPVP: major bump suggested | |
| 0.3 | 2015-12-04 14:46 UTC | EmilAxelsson | +2/−2 lines, 2 filesPVP ok | |
| 0.2 | 2015-12-04 14:24 UTC | EmilAxelsson | +7/−1 lines, 2 filesPVP ok | |
| 0.1.2 | 2015-11-24 17:54 UTC | EmilAxelsson | +2/−2 lines, 1 filesdep ~basePVP ok | |
| 0.1.1 | 2015-11-24 17:20 UTC | EmilAxelsson | +2/−2 lines, 1 filesPVP ok | |
| 0.1 | 2015-11-24 17:15 UTC | EmilAxelsson | +124/−0 lines, 4 filesdep +basesetup-changed |
Dependencies of prelude-edsl-0.4
base <20 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
Reverse dependencies
1 packages depend on prelude-edsl