1
1
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:
Rob Rix 2017-03-10 13:51:46 -05:00
parent 8aea2f6d0f
commit e2b4b65423

View File

@ -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