This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Refactor Target #207
Labels
Comments
Seems reasonable to me. Will we be able to kill |
@ndmitchell Yes, I think so. It will be consumed by |
snowleopard
added a commit
that referenced
this issue
Feb 12, 2016
snowleopard
added a commit
that referenced
this issue
Feb 16, 2016
snowleopard
added a commit
that referenced
this issue
Feb 16, 2016
snowleopard
added a commit
that referenced
this issue
Feb 16, 2016
snowleopard
added a commit
that referenced
this issue
Feb 16, 2016
Closed
snowleopard
referenced
this issue
Feb 16, 2016
snowleopard
added a commit
that referenced
this issue
Feb 16, 2016
snowleopard
added a commit
that referenced
this issue
Feb 19, 2016
snowleopard
added a commit
that referenced
this issue
Feb 19, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We currently have the following
Target
datatype:It makes sense to factor out
Stage
,Package
andWay
into a separate datatype calledContext
:At the moment we mix different notions in one datatype: target-specific ones (
builder
,inputs
,outputs
) and context-specific ones (what is the currentstage
,package
andway
?).By factoring out GHC-specific bits into
Context
we make it easier to reuse our build abstractions in other build systems. Arguably,builder
,inputs
andoutputs
are common for all non-trivial build systems, however, not all build systems needway
,package
or, especially,stage
.We already have a datatype called
PartialTarget
in the build system:This is almost exactly what we want to have as a
Context
./cc @simonpj @simonmar @ndmitchell
The text was updated successfully, but these errors were encountered: