mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Derive Eq & Show instances for some of the types.
This commit is contained in:
parent
8aea2f6d0f
commit
e2b4b65423
@ -35,9 +35,16 @@ data EditGraph a = EditGraph { as :: !(Vector.Vector a), bs :: !(Vector.Vector a
|
||||
data Snake = Snake { xy :: Endpoint, uv :: Endpoint }
|
||||
|
||||
newtype EditDistance = EditDistance { unEditDistance :: Int }
|
||||
deriving (Eq, Show)
|
||||
|
||||
newtype Diagonal = Diagonal { unDiagonal :: Int }
|
||||
deriving (Eq, Show)
|
||||
|
||||
data Endpoint = Endpoint { x :: !Int, y :: !Int }
|
||||
deriving (Eq, Show)
|
||||
|
||||
data Direction = Forward | Reverse
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
||||
-- Evaluation
|
||||
|
Loading…
Reference in New Issue
Block a user