-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor] combine checkInputs/Outputs and use for(M) (#42)
* combine the common parts of checkInputs/Outputs, as they are the same apart from flipping of Src/Tgt (with `Bool` flag to `checkWire`) and the error message * Get a list of Src+Tgt pairs, and `forM` over them - this should make it nice and easy to use `Fork` when multithreading arrives Felt I jumped through a few hoops to preserve behaviour, but specifically I liked checking the wire types matched *before* the looking to see if there was anything left-over.
- Loading branch information
Showing
1 changed file
with
29 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters