Add Binary instances
This commit is contained in:
+3
-1
@@ -5,6 +5,7 @@
|
||||
|
||||
module Sound.Data where
|
||||
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import LinearHelp ()
|
||||
import Control.Lens
|
||||
@@ -29,10 +30,11 @@ data PlayStatus
|
||||
| ToStart
|
||||
| ToContinueStart
|
||||
| ToStop
|
||||
deriving (Eq, Ord, Show)
|
||||
deriving (Eq, Ord, Show, Read, Generic)
|
||||
|
||||
newtype SoundID = SoundID {_getSoundID :: Int}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
instance Binary SoundID
|
||||
|
||||
newtype SoundData = SoundData
|
||||
{ _loadedChunks :: IM.IntMap Mix.Chunk
|
||||
|
||||
Reference in New Issue
Block a user