Move from store to flat

This commit is contained in:
2022-08-20 17:54:35 +01:00
parent 8571ab9254
commit ff9dbdf068
95 changed files with 793 additions and 748 deletions
+10 -7
View File
@@ -1,17 +1,20 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Distortion where
import LinearHelp
import Data.Aeson
import Data.Aeson.TH
import Geometry
import TH.Derive
import Data.Store
import Flat
import Geometry
import LinearHelp
import TH.Derive
data Distortion
data Distortion
= RadialDistortion Point2 Point2 Point2 Float
deriving (Eq,Ord,Show,Read)
deriving (Eq, Ord, Show, Read, Generic, Flat)
deriveJSON defaultOptions ''Distortion
$($(derive [d| instance Deriving (Store Distortion) |]))