created Comparable typeclass
This commit is contained in:
parent
2a94e99371
commit
2f0989fb35
|
@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
|
||||
{-# LANGUAGE OverloadedStrings, RankNTypes #-}
|
||||
|
||||
module TypesSpec (spec) where
|
||||
module TypesSpec (Comparable (..), spec) where
|
||||
|
||||
import Data.Aeson (FromJSON, ToJSON, decode, encode, toJSON)
|
||||
import Data.Aeson.Types (Value (Object))
|
||||
|
@ -35,6 +35,9 @@ import Mtlstats.Types
|
|||
|
||||
import qualified Types.MenuSpec as Menu
|
||||
|
||||
class Comparable a where
|
||||
compareTest :: a -> a -> Spec
|
||||
|
||||
spec :: Spec
|
||||
spec = describe "Mtlstats.Types" $ do
|
||||
playerSpec
|
||||
|
|
Loading…
Reference in New Issue
Block a user