Go back to JSON encoding
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
|
||||
module Picture.Data where
|
||||
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import LinearHelp ()
|
||||
import Control.Lens
|
||||
@@ -42,7 +39,6 @@ numLayers = length [minBound :: Layer .. maxBound]
|
||||
|
||||
newtype ShadNum = ShadNum {_unShadNum :: Int}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
$($(derive [d| instance Deriving (Store ShadNum) |]))
|
||||
|
||||
polyNum, polyzNum, bezNum, textNum, arcNum, ellNum :: ShadNum
|
||||
{-# INLINE polyNum #-}
|
||||
@@ -96,5 +92,3 @@ makeLenses ''Verx
|
||||
deriveJSON defaultOptions ''Verx
|
||||
deriveJSON defaultOptions ''Layer
|
||||
deriveJSON defaultOptions ''ShadNum
|
||||
$($(derive [d| instance Deriving (Store Verx ) |]))
|
||||
$($(derive [d| instance Deriving (Store Layer) |]))
|
||||
|
||||
Reference in New Issue
Block a user