mirror of
https://github.com/github/semantic.git
synced 2024-12-20 13:21:59 +03:00
Derive Eq & Show instances for Size & Cost.
This commit is contained in:
parent
b8ddaaaaf0
commit
f6f067c638
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DataKinds, FlexibleContexts #-}
|
||||
{-# LANGUAGE DataKinds, FlexibleContexts, GeneralizedNewtypeDeriving #-}
|
||||
module Info where
|
||||
|
||||
import Data.Record
|
||||
@ -7,7 +7,9 @@ import Category
|
||||
import Range
|
||||
|
||||
newtype Size = Size { unSize :: Integer }
|
||||
deriving (Eq, Show)
|
||||
newtype Cost = Cost { unCost :: Integer }
|
||||
deriving (Eq, Show)
|
||||
|
||||
type InfoFields = '[ Range, Category, Size, Cost ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user