Search Haskell Channel Logs

Friday, March 3, 2017

#haskell channel featuring MarcelineVQ, ezyang, posco,

posco 2017-03-03 14:54:33
it seems the `-i` option is ignored with `ghc --make` mode. Is there something I am doing wrong?
posco 2017-03-03 14:54:47
ghc -fforce-recomp --make -iout-hi -v -c Bar.hs -odir out-obar -hidir out-hi-bar
ezyang 2017-03-03 14:55:00
-i controls source include path, not his
posco 2017-03-03 14:55:36
this link suggests otherwise: https://downloads.haskell.org/~ghc/5.00/docs/set/separate-compilation.html#RECOMP
posco 2017-03-03 14:55:53
in finding interface files it says use `-i`
ezyang 2017-03-03 14:55:59
you do realize those docs are for GHC 5?
posco 2017-03-03 14:56:25
yeah. :) but I hoped/assumed the options would be the same...
posco 2017-03-03 14:56:30
let me find the latest
ezyang 2017-03-03 14:56:33
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/separate_compilation.html#search-path
posco 2017-03-03 14:58:50
I'm not immediately finding an option to include a directory in the interface search
posco 2017-03-03 15:00:15
it seems like `-i` might be right, it is just that make mode expects the full source to be there
posco 2017-03-03 15:00:23
without `--make` it seems to work
ezyang 2017-03-03 15:01:04
I think it's -hidir
posco 2017-03-03 15:01:29
I thought that was for output
posco 2017-03-03 15:03:35
just to be clear what I'm really trying to do: write bazel rules for haskell.
posco 2017-03-03 15:05:34
if I don't use `--make` I need to pass the files in the correct dependency order.
MarcelineVQ 2017-03-03 15:05:58
posco: there is a difference with --make https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/separate_compilation.html#search-path
posco 2017-03-03 15:05:59
if I use `--make` I can't see the interface files from a different compilation.
MarcelineVQ 2017-03-03 15:06:32
I've never used the option so I've nothing more useful to add :X
posco 2017-03-03 15:06:45
so, it looks like --make just can't be used in this way.
posco 2017-03-03 15:07:00
MarcelineVQ: thanks for pointing that out, though