coot
coot
I'd say it's a bug. Would this reproduce the issue: ``` exports.a = exports.b exports.b = 1 ``` Even though `a` is referenced by a `PureScript` module, `b` is not...
My example did not reproduced the problem, do you happen to have a small example that illustrates the problem?
@aztecrex so you just disabled the bundle option i watching mode, that's not a solution for this issue ;) I'll try to debug it one day... in the meantime I...
@ethul that's fine. I don't know webpack internals (more than reading `purs-loader` code. `purs ide` works fine, most of the time. I can see two problems with it: * on...
I think there is no need for a new format, we could reuse `CoreFn` for the output of the _DCE tool_: * output the modified `CoreFn` output (in a possibly...
I found [purescript-corefn](https://github.com/paulyoung/purescript-corefn). In this case this could be implement in purescript but I am equally happy to do that in Haskell. I don't think performance is really important here,...
ok, this part is also lost in the json representation, so for now any transformation on `CoreFn` read from its json representation will lose source positions. But anyway that can...
I started working on this issue [here](https://github.com/coot/purescript/tree/dce-tool). So far I have [parser](https://github.com/coot/purescript/blob/dce-tool/src/Language/PureScript/CoreFn/FromJSON.hs) of `CoreFn`'s json representation. :)
Some optimizations might be non local, requiring a signature `[CoreFn.Module] -> [CoreFn.Module]`. Using json, will open the additional possibility of writing plugins in purescript :).
**Caching** This is not easy, as `zephyr` is doing global analysis across module boundaries. This means that even if a file hasn't changed, something else now can require something from...