On Wed, Aug 24, 2011 at 04:35:42PM +0400, dokondr wrote:
Hi,
What is the Haskell way to compose functions in run-time?
Depending on configuration parameters I need to be able to compose function
in several ways without recompilation.
When program starts it reads configuration parameters from
If your functions have the same type, then you can easily collect them
in a data structure, say list, and fold that.
For example:
function :: String - (String - String)
function f1 = f1
function f2 = f2
function f3 = f3
runAUserSpecifiedComposition :: String - F
runAUserSpecifiedComposition =
On Wed, Aug 24, 2011 at 4:44 PM, Iustin Pop ius...@google.com wrote:
On Wed, Aug 24, 2011 at 04:35:42PM +0400, dokondr wrote:
Hi,
What is the Haskell way to compose functions in run-time?
Depending on configuration parameters I need to be able to compose
function
in several ways without
On Wed, Aug 24, 2011 at 04:57:19PM +0400, dokondr wrote:
On Wed, Aug 24, 2011 at 4:44 PM, Iustin Pop ius...@google.com wrote:
On Wed, Aug 24, 2011 at 04:35:42PM +0400, dokondr wrote:
Hi,
What is the Haskell way to compose functions in run-time?
Depending on configuration parameters I
On Wed, Aug 24, 2011 at 4:52 PM, Arseniy Alekseyev
arseniy.alekse...@gmail.com wrote:
If your functions have the same type, then you can easily collect them
in a data structure, say list, and fold that.
For example:
function :: String - (String - String)
function f1 = f1
function f2 = f2
dokondr doko...@gmail.com wrote:
This is a nice one, looks already like tiny DSL )
I think I've got the main idea - enumerate in my program all function
compositions in some data structure for Haskell to compile, and the
associate these with parameter values in external file.
In Haskell you