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
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
./lib
>>>> ./lib/Lib.hs
>>>>
>>>> ---
>>>>
>>>> The confusing error is caused by Lib module in libiserv:
>>>> https://hackage.haskell.org/package/libiserv
>>>> which GHC picks!
>>>>
>>>> I
>>> ./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!
>>>
>>
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
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,
>
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
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_