1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Update Variadic to contain a context

- This is useful for capturing the type information for a variadic argument or parameter
This commit is contained in:
Rick Winfrey 2017-10-25 16:39:21 -07:00
parent 5bf43aad8e
commit 840d686891

View File

@ -10,7 +10,7 @@ import Data.Mergeable
import GHC.Generics
-- | Variadic (`...Type` used in function declarations, and `Type...` used in function calls).
newtype Variadic a = Variadic a
data Variadic a = Variadic { variadicContext :: [a], variadicIdentifier :: a }
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
instance Eq1 Variadic where liftEq = genericLiftEq