module - Exporting Functions In Haskell -


i have haskell file named a.hs. have many helper functions, want export 2 of them, example foo1 , foo2. syntax corect?

module (foo1,foo2)  foo1 b = * b foo2 b = + b 

since there other helper functions in file, i'm not supposed reach them prelude after doing this, right? can reach them. i'm not sure do. how can solve problem?

thanks in advance.

the syntax correct. however, interpreted files, ghci makes toplevel functions available.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -