[Haskell-cafe] Total Functional Programming in Haskell
dagit at codersbase.com
Mon Sep 29 23:02:52 EDT 2008
I recently had someone point me to this thread on LtU:
The main paper in the article is this one:
It leaves me with several questions:
1) Are there are existing Haskell-ish implementations of the total
2) Could we restructure Haskell so that it comes in 3 layers, total
functional core, lazy pure partial functional middle, and IO outer layer?
The idea with #2 is that similar to how we use the type system to separate
the purely functional from monadic, and in particular IO actions, can we
make the inner most part of Haskell total? Furthermore, could we do this in
a way that makes it easy to intermingle the three layers the way we can
mingle pure Haskell with IO actions?
Maybe instead of using (->) as the function constructor for total functions
we use a different symbol, say (|->), and the compiler knows to use the more
specialized semantics on those definitions. I'm not sure how make this work
for values that are total functional versus values that are just pure
I'm also interested in hearing about the optimizations that would be
possible when all your expressions are strongly normalizing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe