Hi Robert > > (I think I know enough haskell to answer this, but I may be telling you > all the wrong things.) Why? What's wrong? > > You'll have to pass the values through, though this can be hidden to > some extent. Try changing your functions to have types > > type Input = (Float, Float, ...) > type Output = (Float, Float, ...) > > inputvalues :: IO Input -- add a "return (ve,de,...)" to the end > compute :: Input -> Output
How can I combine several function (calculations) in this function? > outputvalues :: Output -> IO () > > You could then wrap them in > > main :: IO () > main = do input <- inputvalues > outputvalues (compute input) > > This should do what you want. Thank's for your hints. > It might be improved upon by using data types with appropriately named > fields instead of tuples so as to keep your variable names around. Can you give me an example how do to it with named fields? Thanks Thomas
signature.asc
Description: Digital signature
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
