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

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

collision detection - C++ library for mesh to mesh intersection: what is available? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -