Refactor, try to limit dependencies
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.FloatFunction where
|
||||
import GHC.Generics
|
||||
|
||||
import Data.Aeson
|
||||
data FloatFloat = FloatID
|
||||
import Data.Aeson.TH
|
||||
|
||||
data FloatFloat
|
||||
= FloatID
|
||||
| FloatFOV Float
|
||||
| FloatLessCheck Float
|
||||
| FloatAbsCheckGreaterLess Float Float Float
|
||||
| FloatConst Float
|
||||
deriving (Eq,Ord,Show,Read,Generic)
|
||||
instance ToJSON FloatFloat where
|
||||
toEncoding = genericToEncoding defaultOptions
|
||||
instance FromJSON FloatFloat
|
||||
deriving (Eq, Ord, Show, Read)
|
||||
|
||||
deriveJSON defaultOptions ''FloatFloat
|
||||
|
||||
Reference in New Issue
Block a user