Cleanup, remove DeriveGeneric language extensions

This commit is contained in:
2025-10-20 12:10:11 +01:00
parent 2056d8ba0e
commit b2fd0543dd
86 changed files with 61 additions and 263 deletions
-20
View File
@@ -1,20 +0,0 @@
{-# LANGUAGE DeriveGeneric #-}
--{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Creature.Memory where
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Geometry.Data
data Memory = Memory
{ _soundsToInvestigate :: [Point2]
, _nodesSearched :: [Int]
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
makeLenses ''Memory
deriveJSON defaultOptions ''Memory
-2
View File
@@ -1,5 +1,3 @@
--{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
-2
View File
@@ -1,5 +1,3 @@
{-# LANGUAGE DeriveGeneric #-}
--{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
+6 -8
View File
@@ -1,17 +1,15 @@
{-# LANGUAGE DeriveGeneric #-}
--{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Creature.Stance
( module Dodge.Data.Creature.Stance
, module Dodge.Data.AimStance
)where
module Dodge.Data.Creature.Stance (
module Dodge.Data.Creature.Stance,
module Dodge.Data.AimStance,
) where
import Dodge.Data.AimStance
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Dodge.Data.AimStance
import Geometry.Data
data Stance = Stance
@@ -22,7 +20,7 @@ data Stance = Stance
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data Carriage
= Walking { _strideAmount :: Float , _currentFoot :: FootForward }
= Walking {_strideAmount :: Float, _currentFoot :: FootForward}
| Standing
| Floating
| Flying
-2
View File
@@ -1,5 +1,3 @@
{-# LANGUAGE DeriveGeneric #-}
--{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}