1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/src/Operation.hs

11 lines
294 B
Haskell
Raw Normal View History

2015-11-18 02:14:57 +03:00
module Operation where
import Diff
2015-11-18 05:56:28 +03:00
import Data.Map
2015-11-18 02:14:57 +03:00
data Operation a f
2015-11-18 02:40:03 +03:00
= Recursive (Term a Info) (Term a Info) (Diff a -> f)
2015-11-18 05:58:51 +03:00
| ByKey (Map String (Term a Info)) (Map String (Term a Info)) (Map String (Diff a) -> f)
2015-11-18 02:14:57 +03:00
| ByIndex [Term a Info] [Term a Info] ([Diff a] -> f)
2015-11-18 02:39:51 +03:00
deriving Functor