1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/src/Term.hs

11 lines
272 B
Haskell
Raw Normal View History

2015-11-18 22:27:09 +03:00
module Term where
import Control.Comonad.Cofree
import Syntax
import Categorizable
type Term a annotation = Cofree (Syntax a) annotation
instance Categorizable annotation => Categorizable (Term a annotation) where
categories (annotation :< _) = categories annotation