mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Move the instances section header below the classes.
This commit is contained in:
parent
06669a158e
commit
597914a902
@ -76,8 +76,6 @@ type family LocationFor value :: * where
|
|||||||
LocationFor Type.Type = Monovariant
|
LocationFor Type.Type = Monovariant
|
||||||
|
|
||||||
|
|
||||||
-- Instances
|
|
||||||
|
|
||||||
class ValueRoots l v | v -> l where
|
class ValueRoots l v | v -> l where
|
||||||
valueRoots :: v -> Live l v
|
valueRoots :: v -> Live l v
|
||||||
|
|
||||||
@ -87,6 +85,9 @@ class AbstractValue v where
|
|||||||
boolean :: Bool -> v
|
boolean :: Bool -> v
|
||||||
string :: ByteString -> v
|
string :: ByteString -> v
|
||||||
|
|
||||||
|
|
||||||
|
-- Instances
|
||||||
|
|
||||||
instance (FreeVariables term, Ord location) => ValueRoots location (Value location term) where
|
instance (FreeVariables term, Ord location) => ValueRoots location (Value location term) where
|
||||||
valueRoots v
|
valueRoots v
|
||||||
| Just (Closure names body env) <- prj v = envRoots env (foldr Set.delete (freeVariables body) names)
|
| Just (Closure names body env) <- prj v = envRoots env (foldr Set.delete (freeVariables body) names)
|
||||||
|
Loading…
Reference in New Issue
Block a user