1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Update Reference

should probably remove ReferenceInfo?
This commit is contained in:
joshvera 2020-02-07 18:10:33 -05:00
parent d78386f5a2
commit c3e8a15b81

View File

@ -1,3 +1,7 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeApplications #-}
-- | The 'Declaration' record type is used by the 'Control.Effect.Sketch' module to keep
-- track of the parameters that need to be passed when establishing a new reference.
-- It is currently unused, but will possess more fields in the future as scope graph
@ -6,4 +10,12 @@ module Control.Effect.ScopeGraph.Properties.Reference
( Reference (..)
) where
import Data.ScopeGraph as ScopeGraph (Kind, Relation)
import GHC.Generics (Generic)
import Source.Span
data Reference = Reference
{ kind :: ScopeGraph.Kind
, relation :: ScopeGraph.Relation
, span :: Span
} deriving Generic