1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Define >< as a convenient synonym for connect.

This commit is contained in:
Rob Rix 2018-03-22 12:38:13 -04:00
parent dad4cf5490
commit 7bd0c0f437

View File

@ -41,6 +41,11 @@ instance ( Member (State ImportGraph) effects
evaluateModule m@Module{..} = ImportGraphing (evaluateModule m)
(><) :: Graph a => a -> a -> a
(><) = connect
infixr 7 ><
modifyImportGraph :: (Effectful (m term value), Member (State ImportGraph) effects) => (ImportGraph -> ImportGraph) -> ImportGraphing m term value effects ()
modifyImportGraph = raise . modify