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
Post a Comment