Move from store to flat
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE DeriveAnyClass #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
@@ -6,6 +8,7 @@ module Dodge.Data.RadarSweep (
|
||||
module Dodge.Data.ObjectType,
|
||||
) where
|
||||
|
||||
import Flat
|
||||
import LinearHelp
|
||||
import Control.Lens
|
||||
import Data.Aeson
|
||||
@@ -21,8 +24,7 @@ data RadarSweep = RadarSweep
|
||||
, _rsObject :: ObjectType
|
||||
, _rsTimer :: Int
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read)
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
|
||||
makeLenses ''RadarSweep
|
||||
deriveJSON defaultOptions ''RadarSweep
|
||||
$($(derive [d| instance Deriving (Store RadarSweep) |]))
|
||||
|
||||
Reference in New Issue
Block a user