1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
semantic/Syntax.hs

13 lines
193 B
Haskell
Raw Normal View History

2015-11-18 00:29:55 +03:00
module Syntax where
2015-11-18 00:30:20 +03:00
{-# LANGUAGE DeriveFunctor #-}
2015-11-18 00:29:55 +03:00
import Data.Map
2015-11-18 00:45:14 +03:00
data Syntax a f =
2015-11-18 00:38:05 +03:00
Leaf a
| Indexed [f]
| Fixed [f]
| Keyed (Map String f)
deriving (Functor, Show, Eq)