Re: Meaning of -i and -hidir

2021-10-27 Thread Domínguez , Facundo
Thanks everyone for your thoughts. I have opened an issue here: https://gitlab.haskell.org/ghc/ghc/-/issues/20569 Best, Facundo On Sat, Oct 23, 2021 at 11:18 PM Evan Laforge wrote: > The issue uses consistency with -odir and -hieDir as a > rationalization. I think it's not quite right because

Re: Meaning of -i and -hidir

2021-10-23 Thread Evan Laforge
The issue uses consistency with -odir and -hieDir as a rationalization. I think it's not quite right because inputs can have a search path while outputs don't, but if it is true that -odir simultaneously sets the output and input dir for `*.o`, that seems confusing too. Shouldn't -odir set

Re: Meaning of -i and -hidir

2021-10-23 Thread Ryan Yates
./lib >>>> ./lib/Lib.hs >>>> >>>> --- >>>> >>>> The confusing error is caused by Lib module in libiserv: >>>> https://hackage.haskell.org/package/libiserv >>>> which GHC picks! >>>> >>>> I

Re: Meaning of -i and -hidir

2021-10-23 Thread Carter Schonwald
>>> ./hidir_Lib/Lib.hi >>> ./lib >>> ./lib/Lib.hs >>> >>> --- >>> >>> The confusing error is caused by Lib module in libiserv: >>> https://hackage.haskell.org/package/libiserv >>> which GHC picks! >>> >>

Re: Meaning of -i and -hidir

2021-10-23 Thread Brandon Allbery
d module ‘Library’ >> >> I also tried using same -hidir when compiling both modules, then GHC >> still cannot find the Library interface, even the documentation says it >> should. >> >> Please open a GHC issue at https://gitlab.haskell.org/ghc/ghc/-/issues >&g

Re: Meaning of -i and -hidir

2021-10-23 Thread Carter Schonwald
when compiling both modules, then GHC still > cannot find the Library interface, even the documentation says it should. > > Please open a GHC issue at https://gitlab.haskell.org/ghc/ghc/-/issues > > > > - Oleg > On 22.10.2021 19.16, Domínguez, Facundo wrote: > > Dear devs, >

Re: Meaning of -i and -hidir

2021-10-23 Thread Oleg Grenrus
out the meaning of -hidir and -i. Here's my experiment > with both ghc-9.2.0 and ghc-8.10.4. > > > $ find > > ./Main.hs > > ./lib/Lib.hs > > > > $ ghc -dynamic-too -c lib/Lib.hs -odir odir -hidir hidir_Lib > > > > $ ghc -dynamic-too -c Main.hs -odi

Meaning of -i and -hidir

2021-10-22 Thread Domínguez , Facundo
Dear devs, I'm confused about the meaning of -hidir and -i. Here's my experiment with both ghc-9.2.0 and ghc-8.10.4. > $ find > ./Main.hs > ./lib/Lib.hs > > $ ghc -dynamic-too -c lib/Lib.hs -odir odir -hidir hidir_Lib > > $ ghc -dynamic-too -c Main.hs -odir odir -ihidir_