packages feed

prelude-edsl

An EDSL-motivated subset of the Prelude

view on Hackage

"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).
versionuploadeduploaderchanges
0.42016-04-20 12:19 UTCEmilAxelsson+9/−5 lines, 2 filesPVP ok
0.3.12015-12-17 10:11 UTCEmilAxelsson+2/−1 lines, 2 filesPVP: major bump suggested
0.32015-12-04 14:46 UTCEmilAxelsson+2/−2 lines, 2 filesPVP ok
0.22015-12-04 14:24 UTCEmilAxelsson+7/−1 lines, 2 filesPVP ok
0.1.22015-11-24 17:54 UTCEmilAxelsson+2/−2 lines, 1 filesdep ~basePVP ok
0.1.12015-11-24 17:20 UTCEmilAxelsson+2/−2 lines, 1 filesPVP ok
0.12015-11-24 17:15 UTCEmilAxelsson+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 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

Reverse dependencies

1 packages depend on prelude-edsl

raw-feldspar 0.4.1 requires prelude-edsl >=0.4