<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Oh, sure it is gcc ticket right now. Thanks.<div class=""><br class=""></div><div class="">So this is that I’ve done so far. <a href="https://phabricator.haskell.org/D2084" class="">https://phabricator.haskell.org/D2084</a></div><div class="">Just for your convenience I've copied my initial message:</div><div class=""><br class=""></div><div class="">I am working on ticket <a href="https://ghc.haskell.org/trac/ghc/ticket/5850" class="">https://ghc.haskell.org/trac/ghc/ticket/5850</a> now.</div><div class="">I’ve come upon converting the type, which GHC.compileExpr returns, to my prompt function type [PModule] -> Int -> IO String. But this function returns ghc-prim-0.5.0.0:GHC.Prim.Any. I don’t see a clear way to convert it. So my questions are:</div><div class="">- What this type is about? I know Any type in Haskell. Is it a specific version of it?</div><div class="">- Or maybe it is not the best way to check a function correctness? I’ve checked out InteractiveEval module and it seems that there are only four quite similar functions to compile Expressions.</div><div class="">Last person, who was trying to solve this problem, used Unsafe.Coerce and it is also doing this job pretty well now, but the name speaks for itself.</div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 05 Apr 2016, at 9:23 PM, Matthew Pickering <<a href="mailto:matthewtpickering@gmail.com" class="">matthewtpickering@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Seems like this issue - <a href="https://ghc.haskell.org/trac/ghc/ticket/11155" class="">https://ghc.haskell.org/trac/ghc/ticket/11155</a><br class=""><br class="">I also build on OS X and haven't had any problems recently fwiw.<br class=""><br class="">On Tue, Apr 5, 2016 at 6:58 PM, Sazanovich Nikita<br class=""><<a href="mailto:nikitasazanovich@gmail.com" class="">nikitasazanovich@gmail.com</a>> wrote:<br class=""><blockquote type="cite" class="">Thanks for your reply, Matthew.<br class=""><br class="">I’ve tried to merge my local repository with ghc/master branch and after<br class="">this I couldn't build it (even checked out to a successful commit). I am<br class="">getting  this kind of error.<br class=""><br class="">Undefined symbols for architecture x86_64:<br class="">"_stg_sel_17_upd_info", referenced from:<br class="">_s1yAM_info in UI.dyn_o<br class="">_s1yC7_info in UI.dyn_o<br class="">_s1yKD_info in UI.dyn_o<br class="">_s1yLa_info in UI.dyn_o<br class=""><br class="">It seems like something specific to OS X. Can you help me?<br class=""><br class="">On 05 Apr 2016, at 2:25 AM, Matthew Pickering <<a href="mailto:matthewtpickering@gmail.com" class="">matthewtpickering@gmail.com</a>><br class="">wrote:<br class=""><br class="">Hello Nikita,<br class=""><br class="">I don't know the answers to your questions but I do know that it's<br class="">easier to give help if there is some code to look at. I would suggest<br class="">you put a diff up on phab with what you have done so far so that it is<br class="">easy for others to give specific comments about where you are stuck.<br class=""><br class="">Matt<br class=""><br class="">On Mon, Apr 4, 2016 at 7:22 PM, Sazanovich Nikita<br class=""><<a href="mailto:nikitasazanovich@gmail.com" class="">nikitasazanovich@gmail.com</a>> wrote:<br class=""><br class=""> Hello!<br class=""> I am working on ticket <a href="https://ghc.haskell.org/trac/ghc/ticket/5850" class="">https://ghc.haskell.org/trac/ghc/ticket/5850</a> now.<br class="">I’ve come upon converting the type, which GHC.compileExpr returns, to my<br class="">prompt function type [PModule] -> Int -> IO String. But this function<br class="">returns ghc-prim-0.5.0.0:GHC.Prim.Any. I don’t see a clear way to convert<br class="">it. So my questions are:<br class="">- What this type is about? I know Any type in Haskell. Is it a specific<br class="">version of it?<br class="">- Or maybe it is not the best way to check a function correctness? I’ve<br class="">checked out InteractiveEval module and it seems that there are only four<br class="">quite similar functions to compile Expressions.<br class=""> Last person, who was trying to solve this problem, used Unsafe.Coerce and<br class="">it is also doing this job pretty well now, but the name speaks for itself.<br class=""> Thank you.<br class=""><br class="">_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<br class=""><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></div></body></html>