1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00
This commit is contained in:
Rob Rix 2016-06-30 13:45:44 -04:00
parent b0b8aa0616
commit d9e4602c67

View File

@ -35,6 +35,7 @@ termOfSize n = (ArbitraryTerm .) . (:<) <$> arbitrary <*> syntaxOfSize n
arbitraryTermSize :: ArbitraryTerm leaf annotation -> Int
arbitraryTermSize = cata (succ . sum) . toTerm
-- Instances
type instance Base (ArbitraryTerm leaf annotation) = CofreeF (Syntax leaf) annotation