mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Define a type synonym for the set of default fields.
This commit is contained in:
parent
f52894d2e8
commit
5ff9c1fe6a
@ -1,6 +1,7 @@
|
||||
{-# LANGUAGE ConstraintKinds, DataKinds, GeneralizedNewtypeDeriving #-}
|
||||
module Info
|
||||
( HasDefaultFields
|
||||
( DefaultFields
|
||||
, HasDefaultFields
|
||||
, Range(..)
|
||||
, byteRange
|
||||
, setCharacterRange
|
||||
@ -23,6 +24,9 @@ import Range
|
||||
import SourceSpan
|
||||
import Data.Aeson
|
||||
|
||||
-- | The default set of fields produced by our parsers.
|
||||
type DefaultFields = '[ Range, Category, SourceSpan ]
|
||||
|
||||
-- | A type alias for HasField constraints commonly used throughout semantic-diff.
|
||||
type HasDefaultFields fields = (HasField fields Category, HasField fields Range, HasField fields SourceSpan)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user