<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">1) I'm not sure this is what you are looking for, but you could import the module Primes (write "import Primes" at the beginning) in your .hs script, so when loading the script you would load also Primes.</div><div dir="auto"><br></div><div dir="auto">Another way:</div><div dir="auto"><b><font color="#9e9e9e">:load yourFile.hs</font></b></div><div dir="auto"><b><font color="#9e9e9e">:module +Primes</font></b></div><div dir="auto"><br></div><div dir="auto">2) you can try with</div><div dir="auto"><b style="background-color:rgb(255,255,255)"><font color="#9e9e9e">:list circular_times</font></b></div><div dir="auto">(This should print the line where the word "circular_times" appears for the first time, the line before and after it)</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Ut</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il gio 30 gen 2020, 14:29 Alexander Chen <<a href="mailto:alexander@chenjia.nl">alexander@chenjia.nl</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Arial;font-size:13px">Hi,<div><br></div><div>1) I have my own functions in a .hs file which i can load in winGCHI and use the functions without a problem. But I also need 1 function from a hackage library, which I have downloaded in my haskell folder. I can 'toggle' between both my personal .hs and the library but I cannot use them both at the same time. The library is Primes(just for clarity). How can I merge these two so I can continue my training?</div><div><br></div><div>2) Is there a way to see a function if you call it in winGCHI. I don't mean the type structure which you do with :t but really the function itself for instance(see bold):</div><div><br></div><div><div>circular_times :: Int -> [Int]</div><div><i><b>circular_times n = take (length (show n)) (iterate circular n)</b></i></div><div><br></div><br><div><div style="font-family:Arial;font-size:13px">thanks in advance.</div></div></div><div style="font-family:Arial;font-size:13px"><br></div><div style="font-family:Arial;font-size:13px">best,</div><div style="font-family:Arial;font-size:13px"><br>Alexander </div></div>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank" rel="noreferrer">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>