How much do the Hugs 98 & Hugs 1.4 versions differ internally? Would it be
possible to merge these together into one single program? If the Haskell
source files do not differ too much, perhaps one can add keywords, so that
the version running only reads what is pertinent to it. For example:

-- Single file Prelude.hs for the combined Hugs 98 & Hugs 1.4:

Haskell 98 {
sequence       :: Monad m => [m a] -> m [a]
sequence []     = return []
sequence (c:cs) = do x  <- c
                     xs <- sequence cs
                     return (x:xs)
}

Haskell 1.4 {
accumulate       :: Monad m => [m a] -> m [a]
accumulate []     = return []
accumulate (c:cs) = do x  <- c
                       xs <- accumulate cs
                       return (x:xs)
}

  Hans Aberg
                  * Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

Reply via email to