1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Move the instances section header below the classes.

This commit is contained in:
Rob Rix 2017-12-21 09:45:11 -05:00
parent 06669a158e
commit 597914a902

View File

@ -76,8 +76,6 @@ type family LocationFor value :: * where
LocationFor Type.Type = Monovariant
-- Instances
class ValueRoots l v | v -> l where
valueRoots :: v -> Live l v
@ -87,6 +85,9 @@ class AbstractValue v where
boolean :: Bool -> v
string :: ByteString -> v
-- Instances
instance (FreeVariables term, Ord location) => ValueRoots location (Value location term) where
valueRoots v
| Just (Closure names body env) <- prj v = envRoots env (foldr Set.delete (freeVariables body) names)