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

12 lines
386 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
import Term
2015-11-18 02:14:57 +03:00
2015-11-19 00:23:47 +03:00
data Operation a annotation f
= Recursive (Term a annotation) (Term a annotation) (Diff a annotation -> f)
| ByKey (Map String (Term a annotation)) (Map String (Term a annotation)) (Map String (Diff a annotation) -> f)
| ByIndex [Term a annotation] [Term a annotation] ([Diff a annotation] -> f)
2015-11-18 02:39:51 +03:00
deriving Functor