mirror of
https://github.com/github/semantic.git
synced 2025-01-02 20:41:38 +03:00
Factor NonEmpty out of LoadOrder.
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
This commit is contained in:
parent
0d3bec92ad
commit
3b2cb5c0fd
@ -62,10 +62,10 @@ class Show1 constr => Evaluatable constr where
|
||||
|
||||
|
||||
data LoadOrder a b
|
||||
= Done (NonEmpty b)
|
||||
| Load (NonEmpty a) (NonEmpty b -> LoadOrder a b)
|
||||
= Done b
|
||||
| Load a (b -> LoadOrder a b)
|
||||
|
||||
evaluate :: LoadOrder (Module term) (Module (address, Environment address))
|
||||
evaluate :: LoadOrder (NonEmpty (Module term)) (NonEmpty (Module (address, Environment address)))
|
||||
-> Eff effects (NonEmpty (Module (address, Environment address)))
|
||||
evaluate (Done results) = pure results
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user