example for recursive import

Christian Maeder maeder at tzi.de
Wed Jun 7 06:29:21 EDT 2006


Serge D. Mechveliani wrote:
> I do not know. Will the source look natural?

That depends on g and h, a generalization can look natural or artifical.

> Can you explain this more precisely: what to change in  f, g, and h
> ?
> Let it be  f, g, h  :: Int -> Int.

new situtation:

module F where
import G
import H

f :: Int -> Int

f x = ... g f (... x ...) ... h f (... x ...)

module G where

g :: (Int -> Int) -> Int -> Int

g f x = ...

module H ...


More information about the Glasgow-haskell-users mailing list