2024-09-21 16:57:03 +02:00
|
|
|
module Sources where
|
|
|
|
|
2024-09-21 18:02:20 +02:00
|
|
|
import Types
|
|
|
|
|
2024-09-21 16:57:03 +02:00
|
|
|
import Data.ByteString (ByteString)
|
|
|
|
|
|
|
|
data Source a where
|
|
|
|
Data :: a -> Source a
|
|
|
|
|
|
|
|
class SourceState a where
|
|
|
|
stateOfSource :: a -> IO ByteString
|
|
|
|
|
|
|
|
instance SourceState FilePath where
|
|
|
|
stateOfSource = undefined
|
2024-09-21 18:02:20 +02:00
|
|
|
|
|
|
|
instance SourceState Image where
|
|
|
|
stateOfSource = undefined
|
|
|
|
|
|
|
|
instance SourceState (String, FilePath) where
|
|
|
|
stateOfSource = undefined
|