Add Store instances
This commit is contained in:
+3
-1
@@ -5,6 +5,8 @@
|
||||
|
||||
module Sound.Data where
|
||||
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import LinearHelp ()
|
||||
@@ -34,7 +36,7 @@ data PlayStatus
|
||||
|
||||
newtype SoundID = SoundID {_getSoundID :: Int}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
instance Binary SoundID
|
||||
$($(derive [d| instance Deriving (Store SoundID) |]))
|
||||
|
||||
newtype SoundData = SoundData
|
||||
{ _loadedChunks :: IM.IntMap Mix.Chunk
|
||||
|
||||
Reference in New Issue
Block a user