Add Store instances
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.SaveSlot where
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import Control.Lens
|
||||
@@ -13,6 +15,6 @@ data SaveSlot
|
||||
| LevelStartSlot Int
|
||||
| SaveSlotNum Int
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
instance Binary SaveSlot
|
||||
$($(derive [d| instance Deriving (Store SaveSlot) |]))
|
||||
|
||||
makeLenses ''SaveSlot
|
||||
|
||||
Reference in New Issue
Block a user