I also have the same issue with OOHaskell after pulling from <a href="http://code.haskell.org/OOHaskell">http://code.haskell.org/OOHaskell</a>. After loading GHCI I did:<br>> :l ../samples/OCamlTutorial.hs<br>../samples/OCamlTutorial.hs:97:3:<br>
Multiple declarations of `foo'<br> Declared at: ../samples/OCamlTutorial.hs:53:1<br> ../samples/OCamlTutorial.hs:97:3<br>Failed, modules loaded: OOHaskell, Dynamic, Print, DeepNarrow, Nominal, New.<br>
<br><br>Also in the beginning I was unable to load lib/OOHaskell.hs into GHCI because it tried to import a module that was no-longer exported by HList "Data.HList.TypeEq0". When I commented out that line, it loaded fine into GHCI.<br>
<br>-deech<br><br><div class="gmail_quote">On Fri, Nov 11, 2011 at 1:20 PM, aditya siram <span dir="ltr"><<a href="mailto:aditya.siram@gmail.com">aditya.siram@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just pulled the latest version of HList :<br>> darcs clone <a href="http://code.haskell.org/HList" target="_blank">http://code.haskell.org/HList</a><br><br>I compiled it with GHC 7.2.1 and I am still running into the same issue the "makeLabels" function:<br>
> runQ (makeLabels ["test1","test2"]) >>= putStrLn . pprint<div class="im"><br>data Foo_0 deriving (Data.Typeable.Internal.Typeable)<br>foo_1 = Data.HList.FakePrelude.proxy :: Data.HList.FakePrelude.Proxy Foo_0<br>
</div>
data Foo_2 deriving (Data.Typeable.Internal.Typeable)<br>foo_3 = Data.HList.FakePrelude.proxy :: Data.HList.FakePrelude.Proxy Foo_2<br><br>Also the cabal file that is currently at the tip of the repository includes some of the files that have been moved into the "obsolete" directory. I have attached an updated HList.cabal file that seems to work on my machine.<br>
<br>Thanks!<br>-deech<div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">On Tue, Nov 8, 2011 at 8:16 PM, <span dir="ltr"><<a href="mailto:oleg@okmij.org" target="_blank">oleg@okmij.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I believe this is the case of OOHaskell gotten a bit out of sync with<br>
HList and GHC. Please use the latest code bases<br>
<br>
<a href="http://code.haskell.org/HList" target="_blank">http://code.haskell.org/HList</a><br>
<a href="http://code.haskell.org/OOHaskell" target="_blank">http://code.haskell.org/OOHaskell</a><br>
<br>
OCamlTutorial and all other OOHaskell code should work (with GHC<br>
7.0.4).<br>
<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>